Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Revisions Cleanup

250 sites Security covered
View on drupal.org

This module helps manage your database size by automatically deleting old content revisions while keeping a configurable number of recent revisions and a select few historical revisions per month. It also supports multilingual sites and removes associated paragraph revision data.

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
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.0 Stable Jan 30, 2025