Deleting file when deleting a record with "file"