deleting redundant directories