add method to delete dir