delete unneeded files and paths