Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Entity Reference Delete

No security coverage Under active development 14 sites

Part of the Entity ecosystem · 310 projects

This module allows entity reference fields to automatically delete related entities when either the referencing or referenced entity is deleted. This helps maintain data integrity by cleaning up associated content.

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.

Ask your assistant about Entity Reference Delete

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
2
Tracked since
Feb 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 9–10 Feb 8, 2023
1.0.x-dev Dev 9–10 Feb 8, 2023