deleting useless directories