Deleting file when deleted associated record