Drupal is a registered trademark of Dries Buytaert
drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)!

Overview

Media file delete gives content editors the option to delete the associated file when deleting a media entity.

Features

  • Give content editors the option to delete the associated file when deleting a media entity
  • Prevents deletion if the file is in use in other locations
  • Prevents deletion if the user does not have access
  • Adds a new 'delete any file' permission, allowing power-users to bypass core's You can only delete files you own behaviour
  • Optional support for the Entity Usage module when determining if the file is in use. Enable the Media File Delete Entity Usage sub-module to turn this functionality on. This will allow you to prevent deletion if there are uses of the file not tracked by core's File usage API e.g. direct links in body fields to the file.

Configuration/Installation

  • Download and install the module like normal
  • Optionally grant the 'delete any file' permission to users
  • Delete a media item, and note the confirmation form

Requirements

Requires the Media and File modules from core.

Known problems

Please use the issue queue to report issues.

Similar modules

  • File delete however this doesn't delete the file immediately, instead it relies on garbage collection

Activity

Total releases
1
First release
Jun 2026
Latest release
6 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.3.2 Stable Jun 22, 2026