removal of excess directory