We use a custom middle ware application to move courses to a deleted category and then delete them once a day. However sometime there are so many courses to delete the connection between our middleware and moodle times out. I'm looking for something that will delete all the courses in a specific category daily.
This could be accomplished by extending the plugin to set a retention policy on a category, with the retention on said category set to 1 day and a daily scheduled cleanup task. This plugin doesn't support such functionality at this time, but I don't see why it couldn't in the future.
This was proposed on the Moodle.org plugin page:
This could be accomplished by extending the plugin to set a retention policy on a category, with the retention on said category set to 1 day and a daily scheduled cleanup task. This plugin doesn't support such functionality at this time, but I don't see why it couldn't in the future.