delete useless directories