file deletion updates the file gallery appropriated