remove useless directories