Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Content Janitor automatically unpublishes stale content on your Drupal site. It allows administrators to create rules that unpublish content based on configurable date thresholds during cron runs, ensuring content stays fresh and relevant.

# Content Janitor

A robust, lightweight Rules Engine for automated content remediation and unpublishing in Drupal 10/11.

Content Janitor allows site administrators to create dynamic rules that automatically unpublish stale content during routine Cron runs. Instead of relying on manual content audits, this module ensures your site's content remains fresh and relevant based on configurable date thresholds.

## 🚀 Features

* **Configuration Entities:** Built on modern Drupal 10/11 Config Entities. All rules are fully exportable to your site's `config/sync` directory for seamless environment deployments.
* **Dynamic AJAX UI:** The "Add Rule" form dynamically fetches and filters Date and DateTime fields based on the selected Content Type.
* **Core & Custom Field Support:** Intelligently handles both core integer timestamps (e.g., `created`, `changed`) and custom ISO-8601 string fields (e.g., `field_meeting_date`).
* **Cron-Powered Batching:** Processes unpublishing tasks quietly in the background during standard Cron runs.
* **Batch Limits:** Configurable limits per rule to prevent memory timeouts on massive datasets.
* **Revision Tracking:** Automatically creates a new revision with a log message when a node is unpublished by the Janitor.

Activity

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.x-dev Dev Jul 8, 2026