Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Trash 3.0.33 Minor update available for module trash (3.0.33). EOL Warning: Drupal 11.0 has reached end of life and no longer receives security updates. Usage Milestone: Focal Point Module focal_point crossed 1,000 active installs. Release: UI Patterns (SDC in Drupal UI) 2.0.20 Minor update available for module ui_patterns (2.0.20). Release: Trash 3.1.0-rc1 First release candidate for module trash (3.1.0-rc1). Release: Country 2.2.0 Minor update available for module country (2.2.0). Usage Milestone: Ultimate Cron Module ultimate_cron crossed 1,000 active installs. Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 1,000 active installs. Usage Milestone: Config Filter Module config_filter crossed 1,000 active installs. Usage Milestone: Blog Module blog crossed 1,000 active installs.

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



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
Apr 2026
Latest release
4 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

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