Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I delete all the labels in a Confluence space using the Confluence CLI?


How can I delete all the labels in a Confluence space, using the Confluence CLI?
The CLI code I'm interested in should fetch all the labels used in a space, and delete them, without knowing the label names in advance (for example, there are over 150 labels per space).

Thanks for any further info,

1 answer

0 votes

Hi Iliya,

You can remove a label from a set of pages using CLI, and there also appears to be an option to runFromPageList to do this in bulk.

Have a look at that page and do let us know if you have any questions.

Kind Regards,

Hi Shannon,

Would it be possible to see a Confluence CLI example that does that? I'm new to Confluence CLI, and have been unable to construct the right command statement to remove all the labels from the space. Also, it's not about removing a specific label from a set of pages. In my case, I don't know the label names in advance, or how many of them exist. I need to aggregate them and then remove them from the space. Is there a way to do that?


Hi Iliya,

@Bob Swift OSS (Bob Swift Atlassian Apps) mentioned the following example in a previous question:


--action runFromPageList --space SPAC --common "--action removeLabels --labels purple --id @pageId@"
You can list multiple labels in quotes like this:
--labels "label1, label2, label3"
He also has a method to get a list of labels using getLabelList. You could use this to obtain the list of labels you need to remove.
Kind Regards,

Hi Shannon,

I know this example. My question is, how do I combine "getLabelList" (to aggregate all the labels, since I don't know them in advance, and there are over 150 of them) with "runFromPageList" over a specific Confluence space in a single CLI command?



Unfortunately I'm not familiar enough with the CLI which is a third-party add-on, but hopefully the team behind it will see your question here and be able to assist you with that. I have properly tagged it so they can see it.

Otherwise you can consider contacting them directly and they may be able to assist you there.

Kind Regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. We la...

169 views 2 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you