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).

Revision Delete Tools

216 sites Security covered
View on drupal.org

This module offers Drush commands to efficiently delete large numbers of entity revisions in bulk. It uses a queue system to process deletions without consuming excessive memory, allowing you to specify which entities and how many revisions to keep.

This module provides efficient Drush commands for bulk deletion of entity revisions while optimizing performance through a queue system. It supports different entity types and provides revision cleanup without excessive memory usage.

Features

By default, the commands retain the latest three revisions unless a custom --keep value is specified. You can target specific entities, process all revisions across a given entity bundle or type.

Available Commands

Queue revisions for all revisionable entities:
drush rdt:remove-revisions

Queue revisions for all entities of the specified type:
drush rdt:remove-revisions node

Queue revision deletion for all "page" nodes, keeping the last 5 revisions:
drush rdt:remove-revisions node page --keep=5

Queue revision deletion for a specific node (ID 123) under "page":
drush rdt:remove-revisions node page 123

Queue revision deletion for a specific media entity (ID 123) under "image":
drush rdt:remove-revisions media image 123

Why?

In scenarios where a single entity accumulates tens of thousands of revisions, traditional cleanup methods can cause memory exhaustion when attempting to load all revision IDs at once. This module addresses that issue by processing deletions one entity at a time via a queue and chunks revisions, significantly reducing memory consumption.

Additionally, it supports both node and media entity revisions, providing a more flexible and scalable solution for managing revision bloat.

Related Modules

  • Revision Manager - Full-featured revision management with UI, retention policies, and automated cleanup scheduling

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
4
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.0-beta3 Pre-release 10–11 May 20, 2025
1.0.0-beta2 Pre-release 10–11 Mar 3, 2025
1.0.0-beta1 Pre-release 10–11 Feb 6, 2025
1.0.x-dev Dev 10–11 Feb 6, 2025