Drupal is a registered trademark of Dries Buytaert

revision_cleanup

161 sites Security covered
View on drupal.org

Deletes old revisions that you likely no longer need, keep newer revisions you likely need, and allows administrators to keep historic revisions, one/x per month, in order to keep your database from not growing large, and keep key revisions to future comparison.

You should use this module your database is too large due the high number of revisions your project is keeping, specially if you also use multiple languages in your site, and you want to reduce the database utilization.

Features

  • Keeps newer revision from the last X days
  • Retain X old revisions per month
  • Removes associated paragraphs revision data
  • Respects the different languages

Post-Installation - Usage

  1. Install the module as usual
  2. Configure the module at admin/config/system/revision-cleanup , changing the number of days to keep older revisions, and the amount of revisions per month to hold onto.
  3. Wait for cron to populate the queue processor
  4. Wait for cron to run in order to watch revisions disappear, or force the queue run via Drush:
    drush queue-run revision_cleanup_processor

Similar projects

There are many similar project that can be found at https://www.drupal.org/project/node_revision_delete
The main difference between this project and other modules is that "Revisions Cleanup" allows administrators to retain a configurable number of days of revisions, a configurable number of old revisions per month, and is prepared to work with multi-languages websites.

Supporting this Module

This module was originally developed for San Francisco Unified School District (SFUSD), and is maintained by Kalamuna

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jan 30, 2025