---
title: "How to remove page version(s) from a Confluence page using CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89141948/How%20to%20remove%20page%20version(s)%20from%20a%20Confluence%20page%20using%20CLI"
format: markdown
---
<span style="color: #333333">This article explains how to remove one or more page versions from a Confluence page using </span>*<span style="color: #333333">Confluence Command Line Interface (CLI)</span>*<span style="color: #333333">.</span>

### <span style="color: #333333">Instructions</span>

*<span style="color: #333333">removeContentVersion</span>*<span style="color: #333333"> action removes a version from the revision history of Confluence content like a page or a blog. </span>

1. <span style="color: #333333">In the below </span>*<span style="color: #333333">Page History</span>*<span style="color: #333333"> page, you see six versions for a Confluence page. </span>  
  
> Macro (inline-media-image)
2. <span style="color: #333333">Create a CSV file with the column name </span>*<span style="color: #333333">version. </span>*<span style="color: #333333">You can specify the version number(s) either in order or at random. For example, the CSV file can have the rows defined as 2, 3, 4 or 1, 3, 6. </span>  
> Macro (inline-media-image)
3. <span style="color: #333333">Use </span>*<span style="color: #333333">removeContentVersion</span>*<span style="color: #333333"> action along with runFromCSV action and run the below command to remove multiple versions from a page: </span>

<span style="color: #333333">Here is result as displayed on the console window: </span>

```
"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 RemoveVersionCLI.

Run: --version "3" --action removeContentVersion --space RemoveVersionCLI --title Removing Page Versions --continue
Version 3 removed from history for 'Removing Page Versions' in space RemoveVersionCLI.

Run: --version "4" --action removeContentVersion --space RemoveVersionCLI --title Removing Page Versions --continue
Version 4 removed from history for 'Removing Page Versions' in space RemoveVersionCLI.

Run completed successfully. 3 actions were successful from file: removecontent.csv
```

<span style="color: #333333">         </span>