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

content archiver

No security coverage Drupal 11 · not 10
View on drupal.org

This module automatically unpublishes content after a specified expiration date. It can optionally notify the content author when the content is unpublished.

Features

This module would provide site administrators with a simple way to set an expiration date on content nodes. When the expiration date is reached, the module would automatically unpublish the content and optionally notify the content author.

This module addresses a common problem for sites with high content volume (e.g., news sites, blogs, or event listings) by automating content cleanup and preventing outdated information from lingering on the site.

Post-Installation

### 1. Add an Expiration Date Field

First, you need to add a dedicated field to your content types to store the expiration date.

* Navigate to **Structure** → **Content types**.
* Click **Manage fields** next to the desired content type (e.g., "Article" or "Page").
* Click **+ Add field**.
* Select **Date** or **Date and time** as the field type.
* Give it a machine name, such as **`field_expiration`**. Then, click **Save and continue**.
* On the next screen, you can configure the field's settings. Click **Save field settings** to proceed.

---

### 2. Expose the Field on the Content Form

Next, make sure the field is visible for content editors to use.

* While on the content type's page, click the **Manage form display** tab.
* Locate the field you just created (**`field_expiration`**) in the list.
* Ensure its widget is set to an appropriate date picker (e.g., "Date and time").
* Drag the field to your preferred position on the form.
* Click **Save**.

---

### 3. Configure the Content Archiver Module

Finally, tell your **Content Archiver** module which field to use for the expiration date.

* Go to **Administration** → **Configuration** → **Content** → **Content Archiver**.
* In the settings form, find the option for "Expiration field machine name."
* Enter the machine name of the date field you created (e.g., **`field_expiration`**).
* Click **Save configuration**.

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
Sep 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0 Stable 11 Sep 4, 2025