Skip to end of banner
Go to start of banner

How to Bulk delete spaces in Confluence

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

This article presents step by step instructions on how to bulk delete spaces in Confluence using the Confluence CLI app.

Instructions

Use removeSpace action along with runfromCsv to bulk remove space from the Confluence.

Bulk delete spaces in Confluence:

 If you do not have the space key of all the spaces, please use the following action to get the space list.

--action getSpaceList --file "file.csv"


You can use the runFromCsv action to remove the bulk spaces.

--action runFromCsv --file "file.csv" --common "--action removeSpace" --continue

In order to remove multiple spaces at a time, you need to create a CSV file with a single column named space as follows: 

Once you have the CSV file, use the following runFromCsv action to remove the bulk spaces.

--action runFromCsv --file "file.csv" --common "--action removeSpace" --continue

The parameters used in the above actions are:

  • space value refers to the space key.
  • remove value refers to comma separated list of space permissions.
  • --common value refers to ---------
  • --continue value ------------
  • file value refers to path to file based content.
  • No labels