Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to bulk delete Confluence page history

I am looking for a way to easily bulk delete Confluence page history. We have automation in place which allows data on a wiki page to be autogenerated. Whenever when the data is updated many times, this can create a large amount of unwanted history. We would like to be able to delete the page history using automation from time to time.

I see that there is a copy space plugin ( which provides this type of support, however I do not want to have to copy a space to delete the history in it. More over some of the history within the space I would want to keep.

I note that the REST API, has the ability to query the history information for a page, i.e. /rest/api/content/{id}/history. Could that be used to delete the history for a page? I would not appear as such since only GET is supported.

4 answers

1 accepted

4 votes
Answer accepted

After using the Confluence Command Line Interface, we found that the following allowed us to remove page revisions:

./ --user ${USER} --password ${PASSWORD} --action removePageVersions --space "${SPACE}" --title "${LINE}" --limit "${LIMIT}"

we also followed up with the following to clean up the space:

./ --user ${USER} --password ${PASSWORD} --action removeTrash --space "${SPACE}"

HI Davin or anyone,

I'm a beginner, can you please direct me to info to learn more ab out a CLI and how it works? Is there any training you'd recommend? Thank you,

Example, how specifically would I get removePageVersions to work in Confluence using CLI If I installed it?

I am constantly deleting previous versions of a page one at a time which is most annoying!



Which Confluence version are you running on? Go for Conf 5.0 if you haven't yet.

There is a feature on deleting a version of a page. All thanks to this -

We use Confluence 5.5. Yes I am aware that there is a feature to manually delete history one at a time. However, when a page has 59 history instances and there are many pages with the same amount of history, performing this activity manually is extremely time consuming and quite boring. Surely it can be automated in some way. I am aware that there is a feature request to be able to manage history (CONF-27701), however it is still open and has not been started. Are there any other options?

Yes, bulk delete - w/o resorting to command line would be great. I'm painfully deleting 100+ versions now. :sad: Happy holidays! :smile:

0 votes
Davin Studer Community Leader Aug 03, 2014

Check out the Confluence Command Line Interface. It has options for removing page versions.

How about confluence cloud? 

Yes, how about Confluence Cloud?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

494 views 24 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you