XF 2.1 Find orphaned or broken files and delete them from the server


Hi everybody,

is there a way to detect orphaned, duplicate or defective files on the server - in the folders data and internal_data - to automatically merge them into a new folder if necessary and then delete them if these files have been detected as defective?

The reason for this is that in the course of several update, upgrade and deinstallation processes, as well as backups and downloads, files were most likely corrupted.

I would like to identify and delete these files so that the server storage space is not overburdened.