space data maintain

Dear all, 

Would it be possible use command or sql to delete postgresql data and attachment of space data by week or day ? For example, if we want to delete space data of last week (included attachment, comment, like ...), can we use sql command to delete postgresql data and attachment folder ? Thank you.

1 answer

0 vote

In theory, yes, if you have Confluence completely shut down and you do a full reindex after restarting.

In practice, don't.  Unless you have a very good understanding of exactly which tables you need to remove items from, you are going to break it.

I'd strongly recommend using the API to delete - find/write an addon, or use one of the scripting options to do it over REST.

Dear Nic Brough, 

We also found some information as listed as the address of https://confluence.atlassian.com/display/DISC/Confluence+Space+Content+cargador 

But we do not know how to run the command of perl SpaceCopy.pl , can you give us some tips or guidance ? thank you.

Stuff that's nearly 10 years old really isn't of much use now. I'd strongly recommend using the API to delete - find/write an addon, or use one of the scripting options to do it over REST.

Dear Sir, Is there any information about API to delete page ? Thank you.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,694 views 26 10
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