The below SIL script will delete all labels from a page in a Confluence instance:
Code Block |
---|
|
//get page
number page = getPage("TST", "This is a demo page"); //get page
%page%.labels = "";
//set the labels to empty string -> which deletes all labels of the page
%page%.labels = ""; |
Replace
TST
with the key of Space where the desired page exists.
This is a demo page
with the title of the desired page, whose labels you want to delete.
Here’s a screen recording showing the above script in action:
...
Reference:
See Other Recipes:
Filter by label (Content by label) |
---|
cql | label = "pages" and parent = "16974866" |
---|
|
See More Documentation:
Filter by label (Content by label) |
---|
sort | title |
---|
cql | label = "page_routines" |
---|
|