Removes bad files.