remove unneeded directories