def rm(hdfs_path, recursive=True, user=None):
host, port, path_ = path.split(hdfs_path, user)<EOL>fs = hdfs(host, port, user)<EOL>retval = fs.delete(path_, recursive=recursive)<EOL>fs.close()<EOL>return retval<EOL>
Remove a file or directory.

If ``recursive`` is :obj:`True` (the default), directory contents are
removed recursively.