This project is not covered by Drupal’s security advisory policy.

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

Project information

Releases