code: def delete(self, paths, recurse=False):
          ''' Delete paths
  
          :param paths: Paths to delete
          :type paths: list
          :param recurse: Recursive delete (use with care!)
          :type recurse: boolean
          :returns: a generator that yields dictionaries
  
          .. note:: Recursive deletion uses the NameNode recursive deletion functionality
                   instead of letting the client recurse. Hadoops client recurses
                   by itself and thus showing all files and directories that are
                   deleted. Snakebite doesn't.
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("delete: no path given")
  
          processor = lambda path, node, recurse=recurse: self._handle_delete(path, node, recurse)
          for item in self._find_items(paths, processor, include_toplevel=True):
              if item:
                  yield itef delete(self, paths, recurse=False):
          ''' Delete paths
  
          :param paths: Paths to delete
          :type paths: list
          :param recurse: Recursive delete (use with care!)
          :type recurse: boolean
          :returns: a generator that yields dictionaries
  
          .. note:: Recursive deletion uses the NameNode recursive deletion functionality
                   instead of letting the client recurse. Hadoops client recurses
                   by itself and thus showing all files and directories that are
                   deleted. Snakebite doesn't.
          '''
          if not isinstance(paths, list):
              raise InvalidInputException("Paths should be a list")
          if not paths:
              raise InvalidInputException("delete: no path given")
  
          processor = lambda path, node, recurse=recurse: self._handle_delete(path, node, recurse)
          for item in self._find_items(paths, processor, include_toplevel=True):
              if item:
                  yield item
docs: Delete paths
  
          :param paths: Paths to delete
          :type paths: list
          :param recurse: Recursive delete (use with care!)
          :type recurse: boolean
          :returns: a generator that yields dictionaries
  
          .. note:: Recursive deletion uses the NameNode recursive deletion functionality
                   instead of letting the client recurse. Hadoops client recurses
                   by itself and thus showing all files and directories that are
                   deleted. Snakebite doesn't.