docs: def rm(hdfs_path, recursive=True, user=None):
      """
      Remove a file or directory.
  
      If ``recursive`` is :obj:`True` (the default), directory contents are
      removed recursively.
      """
      host, port, path_ = path.split(hdfs_path, user)
      fs = hdfs(host, port, user)
      retval = fs.delete(path_, recursive=recursive)
      fs.close()
      return retval