Hello - we are running (server) Confluence with Comala Document Management and Scriptrunner.
There is an archival workflow that manages pages such that after a year of inactivity they are flagged for review and if no action is taken they are then flagged for removal.
Comala Document Management does not have the capability to delete pages. The most I can do is restrict them and add a label "to-be-deleted".
Scriptrunner appears to have to the theoretical ability to run a script, on a schedule, that will look for all pages with a specific label (i.e. to-be-deleted) and delete said pages.
I have a small script in Scriptrunner that will find and return the ids of all pages with a specific label - what I have not been able to find is how to delete pages in a Scriptrunner script.