fix file deletions when record deleted or updated

add "delete file too"