Versions Compared

Key

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

...

  1. In the below Page History page, we see six versions for a Confluence page. 

  2. Create a CSV file with the column name, version. One can specify the version number(s) either in order or randomly. For example, the CSV file can have the rows as 2, 3, 4 or 1, 3, 6. 
  3. Using removeContentVersion action along with runFromCSV action, execute the below command to remove multiple versions from a page: 

    Code Block
    themeMidnight
    --action runFromCSV --file removecontent.csv --common "--action removeContentVersion --space "RemoveVersionCLI" --title "Removing Page Versions" --continue"


  4. Here is result as displayed on the console window: 

    Code Block
    themeMidnight
    "RemovingPagesVersions" --continue"
    
    Run: --version "2" --action removeContentVersion --space RemoveVersionCLI --title Removing Page Versions --continue
    Version 2 removed from history for 'Removing Page Versions' in space REMRemoveVersionCLI.
    
    Run: --version "3" --action removeContentVersion --space RemoveVersionCLI --title Removing Page Versions --continue
    Version 3 removed from history for 'Removing Page Versions' in space REMRemoveVersionCLI.
    
    Run: --version "4" --action removeContentVersion --space RemoveVersionCLI --title Removing Page Versions --continue
    Version 4 removed from history for 'Removing Page Versions' in space REMRemoveVersionCLI.
    
    Run completed successfully. 3 actions were successful from file: D:\Bobshift\ACLI-9.0.0\atlassian-cli-9.0.0\removecontent.csv


         

...