Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
There are around 60 Spaces that needs to delete in conflunece, and doing it manually is a big task. Could you please let me know if there is a way to bulk delete the spaces.
Conflunece Version:
Hi Shivani,
if you use the Bob Swift CLI you can automate that with a common action.
Must be something like this:
--action runFromContentList --cql "space in key1,key2,keyX" --common '-action removeSpace --space @space@' --continue
Within Confluence, there is no way to bulk-delete spaces.
Kind regards
André
Hi Shivani,
Please also take a look at this older question. It contains a lot of valuable information (similar to the post from Andre).
Best,
Maarten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Andre and Maarten.
As there is no way to bulk-delete spaces within Confluence, I will have to check on the CLI.
Many Thanks,
Shivani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Almost...
All spaces except for:
--action runFromContentList --cql "space not in (KEY1,KEY2,KEY3)" --common "--action removeSpace --space ""@space@"" --continue" --continue
Only X spaces:
--action runFromContentList --cql "space in (KEY1,KEY2,KEY3)" --common "--action removeSpace --space ""@space@"" --continue" --continue
Full example with server info:
.\confluence.bat --server http://confluenceserver --user USERNAME --password "PASSWORD" --action runFromContentList --cql "space not in (KEY1,KEY2,KEY3)" --common "--action removeSpace --space ""@space@"" --continue" --continue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.