This module helps you find and permanently delete files that are no longer used by your Drupal site. It cleans up both unmanaged files and orphaned files that are not attached to any content or tracked in the file usage table.
Permanently delete unused/orphaned files in drupal 8 | 9
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 & the file usage table. AKA deleting all the orphaned files.
Install with composer
composer require drupal/delete_unused_files
Ask your assistant about Delete unused/orphaned files
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.