This project is not covered by Drupal’s security advisory policy.
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.
Supporting organizations:
Development
Project information
- Project categories: Content editing experience, Developer tools
18 sites report using this module
- Created by joachim on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0-alpha1
released 8 February 2023
Works with Drupal: ^9 || ^10
Install:
Development version: 1.0.x-dev updated 13 Apr 2023 at 09:16 UTC
