A Module that can finally delete files properly!

What this module can do:
- View of all managed files with an option to force delete them via VBO custom actions
- Manually deleting managed files by FID (and an option to force the delete if you really want to).
- Deleting unused files from the default files directory that are not in the file managed table. AKA deleting all the unmanaged files.
- 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.
- 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
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
Similar-ish Modules
Audit Files
File Delete (D8)
Delete Files
Force File Delete
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Media
6,865 sites report using this module
- Created by labboy0276 on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



