removing unwanted files from foundation