removes user file and ignores some files