Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Revisions Cleanup

238 sites Security covered Drupal 8–11
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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0 Stable 8–11 Jan 30, 2025