This project is not covered by Drupal’s security advisory policy.

This module implements a Drush command that finds releases older than a given time and pushes them to a queue so they can be deleted by a queue worker. It is inspired in Node Revision Delete module uses, but splits in two the tasks of finding candidates and deleting them, which
speeds up the initial effort in deleting a large set of old revisions.

For example, to create a queue to delete article revisions older than a year, you would run this command:

drush revision-delete-queue --type=article "12 months ago"

Next, you would set up a scheduled job that runs periodically to process the Queue via Drush's queue runner. At it's simplest form, it would look like this:

drush queue-run revision_delete --time-limit=60

The above processes the queue for 60 seconds. A basic setup would involve setting up a crontab that runs the above command every two minutes. For a more advanced setup using parallel processing with supervisor, refer to the README.md.

Supporting organizations: 
Creation and maintenance

Project information

Releases