Drupal is a registered trademark of Dries Buytaert
Drupal 11.4.3 Update released for Drupal core (11.4.3)! Views Bulk Operations (VBO) 4.4.6 Minor update available for module views_bulk_operations (4.4.6). External Authentication 2.0.12 Minor update available for module externalauth (2.0.12). Similar By Terms 2.0.0 Major update available for module similarterms (2.0.0). Similar By Terms 8.x-1.10 Minor update available for module similarterms (8.x-1.10). Dependent Fields 1.0.11 Minor update available for module dependent_fields (1.0.11). Menu item content fields 2.1.1 Minor update available for module menu_item_fields (2.1.1). Accessibility menu 1.0.3 Minor update available for module accessibility_menu (1.0.3). Menu Admin per Menu Module menu_admin_per_menu crossed 50,000 active installs. Document Preview 2.0.0 Module document_preview updated after 13 months of inactivity (2.0.0).

This module prevents entities from being deleted if they are referenced by other entities. It allows you to specify which entity types and bundles should be protected, ensuring that critical entities are not accidentally removed.

Provides protecting some entities from deletion if they are used in other entities.

For example, I have entity Student which has reference to entity School.
I can delete Student because School will be School without this Student.
But If I'll delete School, Student cannot be Student.

So, the School should be protected. And this module allows doing this.

Features:

  • Protect entity from manual deletion
  • Protect entity from programatic deletion
  • Choosing types and bundles of entities which should be protected from deletion

TODO:

  • Add an option "Protect all"
  • Support handling of references through views
  • Add hook to implement custom reaction of deletion of entities programmatically
  • Add custom theme function for information about referenced entities on "confirm deletion" form



Activity

Total releases
2
First release
Apr 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.1.0-alpha1 Pre-release Apr 13, 2026
2.1.x-dev Dev Apr 13, 2026