#51698Delete sys_file entry when a file is deleted
Description
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.