Question : Does anyone know how to fully audit and clean up a "/sites/default/files/" directory... ?
I've recently took on a new client, who has a 10+ year old Drupal 7 site, with 10+ years of ... decisions...
The file system is radio active disaster zone of files that I am 100% sure are mostly unused...
We just migrated the site to D11, and moved everything in to the media library, but theres still 12+GB of files that, as I said, are probably mostly not needed anymore.
Does anyone have a process, or documentation, or a guide of any kind on how to go about progromatically analyzing the content model, the actual usage in the database, with some sort of process to look for each file, and process them in some way to know which files are safe to delete?
Thanks!
[link] [comments]