Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

You need to have Power Scripts for Confluence app installed in your Confluence instance to implement the below.

The below SIL script will delete all labels from a page in a Confluence instance:

Code Block
languagegroovy
//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)
cqllabel = "pages" and parent = "16974866"

See More Documentation:

Filter by label (Content by label)
sorttitle
cqllabel = "page_routines"