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

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

Releases