remove uneeded directories