The Entity Reference Delete module allows reference fields to enforce referential integrity by deleting related entities. References can be enforced in both directions:
- A parent entity being deleted can cause child entities to be deleted. For example, deleting a node could cause the taxonomy terms referenced in a 'tags' field to be deleted.
- A child entity being deleted could cause parent entities to be deleted. For example, deleting a store entity could cause product entities which reference that store to be deleted.
Both config fields and code field can be configured to delete related entities.
Other similar modules
- https://www.drupal.org/project/entity_reference_integrity : Prevents deletion of referenced entities.
- https://www.drupal.org/project/entity_reference_purger : Cleans up field values in referencing entities that point to deleted entities.
- https://www.drupal.org/project/err_delete : Provides a UI for recursively deleting entities.
Limitations
The module only supports the entity_reference field type in core, and does not work with dynamic_entity_reference or entity_reference_revisions field types from contrib. Support for these could be added when this core issue is fixed.
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.
More in the Entity ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-alpha1 | Pre-release | Feb 8, 2023 | ||
| 1.0.x-dev | Dev | Feb 8, 2023 |