Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Instructions

Use Use the removeSpace action to bulk to delete spaces from Confluence in bulk.

...

  1. Create a CSV file with the space keys that need to be removed.

...

  1. Run the following command using the getSpaceList action. 

    Code Block
    themeMidnight
    --action getSpaceList --file "spacelist.csv"

...



  1. Run the following CLI action along with the 

...

  1. runFromCsv action to delete spaces. Ensure that the spacelist.csv file has only space keys with the column name 'space'.

    Code Block
    themeMidnight
    --action runFromCsv --file "spacelist.csv" --common "--action removeSpace" --continue


    Sample CSV file:

    Image Modified
    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 parameter string added to all run actions.
    • --continue

...

    • value processing even after errors are encountered for run actions. Also used for some action to ignore certain errors like not found errors on remove actions.
    • --file value refers to path to file based content.


Info

Test the action in a test environment before implementing in production.