Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

file_delete

22,412 sites Security covered
View on drupal.org
Functionality landed in core 10.1 #2949017: There is no way to delete file entities of other users

The File Delete module adds the ability to easily delete files —both private and public— within Drupal administration.

It changes files from the "Permanent" status to the "Temporary" status. These files will be deleted by Drupal during its cron runs.

If a file is registered as being used somewhere, the Module will not allow it to be deleted.

Differences from core functionality

  • Built in safeguard that won't delete a file that has usage.
  • Option to delete form immediately, skipping core's file cleanup step.
  • Option to force delete a file, skipping the built-in access check.
  • Bulk plugins for doing mass deletions.

Other modules to consider

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


Usage Notes

File is set to 'Temporary' but not getting deleted after a cron run

In Drupal, Temporary files generally kept for some time — default 6 hours — before being deleted.
You can configure this time in Administration » Configuration » Media » File System

Working with Drupal Media

If you added an image to the website as a Drupal Media entity, you will have to follow these steps.

  1. Important: Confirm that this Media is not being used in your site.
  2. Delete this Media entity in Administration » Content » Media
  3. Now you can delete the file in Administration » Content » Files

Why is this the case?
Drupal's File Usage system still needs some work. It does not correctly track all usages within Drupal. Most of the work related to this is being tracked in #2821423: Dealing with unexpected file deletion due to incorrect file usage
Specific to Drupal Media, the work is being tracked in #2835840: Track media usage and present it to the site builder (in the media library, media view, on media deletion confirmation, etc.)

Activity

Total releases
2
First release
Jan 2026
Latest release
2 months ago
Release cadence
23 days
Stability
100% stable

Releases

Version Type Release date
3.0.2 Stable Jan 28, 2026
3.0.1 Stable Jan 5, 2026