$customHeader
Skip to end of banner
Go to start of banner

Delete all labels of a Confluence page.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

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

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

//get page
number page = getPage("TST", "This is a demo page"); 

//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.

Note: If you have utilized these labels in any macro that involves labels (for example, the Content by Label macro), deleting those labels may cause the above page to be excluded from the macro-generated results.

Here’s an example showing the above script in action:

DeleteAllLabels.mp4

Reference:

See Other Recipes:

See More Documentation:

  • No labels