Any way to bulk remove drafts in confluence?

I have approx 100 drafts and would like to bulk remove them.

And I'd like to provide this option to our users.

1 answer

Hi Anne,

You can easily deduct the SQL you need from the SQL on that page.

You'll need to do the following :

  1. select * into temp_conf from CONTENT where CONTENTTYPE='DRAFT' (maybe change this to how it works in you DB)
  2. DELETE FROM BODYCONTENT where CONTENTID IN (select CONTENTID from temp_conf);
  3. DELETE from ATTACHMENTS where PAGEID in (select CONTENTID from temp_conf);
  4. DELETE from CONTENT where CONTENTID in (select CONTENTID from temp_conf);

Keep in mind that doing stuff in your database is not something you should consider doing lightly and is completely at your own risk.

Please take a backup before doing any changes.

Best regards,


Thanks - unfortunately this is nothing I can provide to our users.


This is so essential when your application creates a draft every time you open a page for editing.  In general, I've noticed that Atlassian software is *severely* lacking when it comes to bulk editing functionality *cough jira cough*. 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

108 views 3 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you