Restrict Asset Delete plugin for Craft CMS

A Craft CMS plugin to prevent the deletion of a used asset.

Restrict Asset Delete Overview

Want to prevent contributors from deleting a used asset? This plugin is for you!

Using Restrict Asset Delete

Once the plugin is activated, any attempt to delete an asset already linked to any entry by an unauthorized user will be refused.

Note: The plugin will not prevent linked assets within WYSIWYG editors fields from being deleted.

Users Restriction

The restriction can be set by using the relevant permission on a group or user level.

Admin Restriction

You can determine if Admin users can skip the restriction by going to Settings → Restrict Asset Delete.

You can also copy and modify the plugin config.php file to craft/config as restrict-asset-delete.php to override that behavior.

Note: By default, users with Admin permission are not allowed to skip the restriction.

Brought to you by La Haute Société.

Installation Instructions

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

Active Installs
537
Version
2.0.1
License
MIT
Compatibility
Craft 3, Craft 4
Last release
August 25, 2022
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs