Provides the capabilities of performing "soft" delete (archive) operations and restoration in Drupal 8.
Setup
This is an API module that must be implemented by entity types that wish to support it.
- Add an
entity_delete_opto the entity annotation. entity_delete_op = trueThe default behaviour. Delete, Purge, and restore enabled.entity_delete_op = no-purgeDisable purging on this entity.entity_delete_op = double-confirmationAsk twice before purging forever.- Entity class should implement
EntityDeletableInterfaceanduse EntityDeletableTrait. - If entity types declare their own delete permissions, users must be granted that permission as well as the entity_delete_op permission for the entity type.
- Listing views will need to be updated to filter the "soft deleted" items. You can specify a permission in the filter config that restricts access to the exposed filter.
Supporting organizations:
Development
Development
Project information
7 sites report using this module
- Created by amcgowanca on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.

