'_delete(path, recursive=False)
Delete a file or directory.'

def _delete(self, path, recursive=False):

    path = Hdfs.normpath(path)
    params = self._getparams()
    params['op'] = 'DELETE'
    params['recursive'] = ((recursive and 'true') or 'false')
    result = self._root.delete(path, params)
    if (not result['boolean']):
        raise IOError((_('Delete    failed:    %s') % path))
