Skip to main content

Mike Kreuzer

Delete files - for Drupal

Want to delete some out of date PDFs on your Drupal site? It's your site, do it.

You don't need to hope the reference counts in the managed file table aren't askew, or that cron runs, or your developers have the time. Tick some checkboxes & hit the big friendly button that says send these files to hell, & you're done. (OK, it says 'Delete selected files', but same same.)

I blogged about some of the motivation behind the module.

How do I get it?

Delete files is a Drupal module, you can download it from the module's page on drupal.org, poke around in the source code, or simply use composer.

composer require 'drupal/delete_files'