Restrict element deletions icon

Restrict element deletions

Plugin screenshot thumbnail 1/1

This plugin can prevent deletion of elements (entries, assets, categories, products and users) if they are referenced in other elements.

The idea is taken from the plugin Restrict Asset Delete, improved to apply to all elements, and made Craft 4 ready.

You will need to define policies for each section/volume/category groups and users in the settings, there are 4 policies :

  • Do not restrict
  • Restrict all : Prevent deletions when the element is referenced in another element, in drafts and revisions also
  • Restrict all but revisions : Same as above but not in revisions
  • Restrict all but drafts : Same as above but not in drafts
  • Restrict all but drafts and revisions : Same as above but not in drafts or revisions
Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
486
Version
2.2.1
License
MIT
Compatibility
Craft 3, Craft 4
Last release
December 8, 2023
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs