Task #50876: Handling of deleted files in FAL
Delete sys_file entry when a file is deleted
In order to keep sys_file as much in sync with the real file system as possible we should delete the relevant sys_file entry as soon as a file is deleted.
This is part of the "plan" in #50876 and should also be backported to 6.0/6.1 to keep the API straight and uniform throughout the releases.
[TASK] Delete sys_file(_metadata) entries when a file is deleted
In order to keep sys_file and sys_file_processedfile
as much in sync with the real file system as possible
we delete the relevant sys_file and sys_file_metadata
entries as soon as a file is deleted.