remove needless file entries