PHPackages                             la-haute-societe/craft-restrict-asset-delete - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. la-haute-societe/craft-restrict-asset-delete

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

la-haute-societe/craft-restrict-asset-delete
============================================

Prevent accidental removal of used assets

2.0.1(3y ago)38.0k1[1 issues](https://github.com/la-haute-societe/craft-restrict-asset-delete/issues)MITPHP

Since Nov 12Pushed 3y ago6 watchersCompare

[ Source](https://github.com/la-haute-societe/craft-restrict-asset-delete)[ Packagist](https://packagist.org/packages/la-haute-societe/craft-restrict-asset-delete)[ RSS](/packages/la-haute-societe-craft-restrict-asset-delete/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (11)Used By (0)

Restrict Asset Delete plugin for Craft CMS
==========================================

[](#restrict-asset-delete-plugin-for-craft-cms)

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

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.0.0 or later. Version 1.x of this plugin supports Craft CMS 3.x.

Installation
------------

[](#installation)

### The easy way

[](#the-easy-way)

Just install the plugin from the [Craft Plugin Store](https://plugins.craftcms.com).

### Using Composer

[](#using-composer)

- Install with Composer from your project directory: `composer require la-haute-societe/craft-restrict-asset-delete`
- In the Craft Control Panel, go to Settings → Plugins and click the **Install** button for Restrict Asset Delete plugin.

Restrict Asset Delete Overview
------------------------------

[](#restrict-asset-delete-overview)

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

Using Restrict Asset Delete
---------------------------

[](#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
-----------------

[](#users-restriction)

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

Admin Restriction
-----------------

[](#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 [![Logo La Haute Société](.readme/logo-lahautesociete.png)](https://www.lahautesociete.com)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~172 days

Recently: every ~103 days

Total

9

Last Release

1410d ago

Major Versions

1.2.0 → 2.0.02022-08-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8ee487ad8fd68ef71b606e38019a3cc3d1198c410c9d37443fd7c7ffa6ef22d?d=identicon)[juban](/maintainers/juban)

![](https://www.gravatar.com/avatar/9fd1947ef8f9b4e7b6f1782c87ade771ff646d15941f6e5347605bdf16fada71?d=identicon)[la-haute-societe](/maintainers/la-haute-societe)

---

Top Contributors

[![nstcactus](https://avatars.githubusercontent.com/u/353843?v=4)](https://github.com/nstcactus "nstcactus (20 commits)")[![ryssbowh](https://avatars.githubusercontent.com/u/6736613?v=4)](https://github.com/ryssbowh "ryssbowh (5 commits)")

---

Tags

assets-managementcmscraftcraft-plugincraftcmserrorcmsassetCraftcraftcmscraft-plugindeleteremoveremovaldeletionmistakerestrict asset delete

### Embed Badge

![Health badge](/badges/la-haute-societe-craft-restrict-asset-delete/health.svg)

```
[![Health](https://phpackages.com/badges/la-haute-societe-craft-restrict-asset-delete/health.svg)](https://phpackages.com/packages/la-haute-societe-craft-restrict-asset-delete)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/workflow

Enforce multi-step review processes for creating entries.

138124.2k1](/packages/verbb-workflow)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
