removing unneeded directories