remove uneeded directories from repository