A Module that can finally delete files properly!

fancy

What this module can do:

  1. View of all managed files with an option to force delete them via VBO custom actions
  2. Manually deleting managed files by FID (and an option to force the delete if you really want to).
  3. Deleting unused files from the default files directory that are not in the file managed table. AKA deleting all the unmanaged files.
  4. Deleting unused files from the whole install that are no longer attached to nodes & are still in the file usage table. AKA deleting all the orphaned files.
  5. Delete files via drush by fid(s)

Drush Command

You can provide a single fid or a list of fids separated by commas.

drush fancy:file-delete FID
drush fancy-file-delete FID
drush ffd FID

Failure to add the fid to the drush command results in an error as a FYI.

Drupal 8/9

Requirements

VBO

You will also need a core patch so you can delete the files of other users as outlined in this issue #3169116: Manual delete works while selecting from the list doesn't. The patch in this issue seems to work well.

Finally after not doing much with this module since 2015, on May 24, 2020, Fancy File Delete 2.0.x version is D8 / D9 ready. It is pretty much feature parity with the D7 version.

There is a couple small things left to do, nothing major though...

Note: If you were using the 8.x-1.x dev version that was here for awhile. Uninstall it and use the 2.0.x versions going forward

Drupal 7

Requirements

Entity
Views
VBO

Similar-ish Modules
Audit Files
File Delete (D8)
Delete Files
Force File Delete

Supporting organizations: 
Sponsored contribution time

Project information

Releases