Removing files with invalid file extension