Skip to end of banner
Go to start of banner

How to remove a label from a set of pages

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 2 Next »

Description

The addLabels the removeLabels actions support both content and space labels (see link). There can be confusion when using the removeLabels action when only the space parameter is used. This will only removes a space label and does not affect any page labels. If you specify a title or id parameter, then it will remove a content label. 

If you need to remove one or more labels from all the pages in a space, then the following steps will work.

Steps

  1. Use runFromPageList or similar run actions to remove labels from multiple pages. For instance, all pages in a specific space.

     

    confluence --action runFromPageList --space zconfluencecli --common '--action removeLabels --labels xxx --id @pageId@'
  2. Use other parameters on the runFromPageList action to subset the removal.

Alternatives

  • Use runFromSql for more fine grained control over what pages to affect.

 

  • No labels