deleting irrelevant directories.