def DSDelete(dstype, objectname, attribute=None, value=None):
  ds_path = '/%ss/%s' % (dstype.capitalize(), objectname)
  cmd = [_DSCL, '.', '-delete', ds_path]
  if attribute:
    cmd.append(attribute)
    if value:
      cmd.extend([value])
  (unused_stdout, stderr, returncode) = gmacpyutil.RunProcess(cmd)
  if returncode:
    raise DSException('Cannot delete %s for %s: %s' % (attribute,
                                                       ds_path,
                                                       stderr))
DirectoryServices attribute delete.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/ds.py/DSDelete