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
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
Is that "Bulk Purge Trash" removed in latest plugin version as I cannot find it ?
Managed to create automated script which is running regularly.
@Renni Verho
It would be great, if you could post your script. I've searched the whole internet and cannot find a solution or a script.
Could you?
It looks like you're new here. Sign in or register to get started.