Feature: #45039 - Command to clean up local processed files

See forge#45039


It is now possible to set up a recurring scheduler task or execute a CLI command to clean up locally processed files and their database records.


The command will delete sys_file_processedfile records with references to non-existing files. Also, files in the configured temporary directory (typically _processed_) will be deleted if there are no references to them.


Delete files and records with confirmation:

./bin/typo3 cleanup:localprocessedfiles

Delete files and records:

./bin/typo3 cleanup:localprocessedfiles -f

Only show which files and records would be deleted:

./bin/typo3 cleanup:localprocessedfiles --dry-run -v

Please note that the command currently only works for local drivers.