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

See forge#45039

Description

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.

Impact

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.

Example

Delete files and records with confirmation:

./bin/typo3 cleanup:localprocessedfiles
Copied!

Delete files and records:

./bin/typo3 cleanup:localprocessedfiles -f
Copied!

Only show which files and records would be deleted:

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

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