Cleaning up files for invalid files removal