Removes undesired files.