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

Use ScriptRunner to purge trash over X days old

Is it possible to create a Confluence ScriptRunner script/job to purge items in space trash that have been there over X amount of days? Looking for an automated way to clean up spaces every 90 days or so to reduce storage. Thanks

1 answer

Hi Doug,

We do have a built-in script 'Bulk Purge Trash' which purges the trash of a specific space, or all spaces. Built-in scripts require manually running, however.

To run custom scripts on a schedule, we have the Script Job feature, which you can read more about in the documentation:

https://scriptrunner.adaptavist.com/latest/confluence/ScriptJobs.html

This involves defining a CRON expression which specifies how often the script should run. Additionally, there are example expressions within the Script Job page on the app itself.

I hope this is useful to you, please let me know if you have any further questions!

Kind regards,
Tony

Suggest an answer

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

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

85 views 1 5
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