def deleteRole(dataConnect, roleId): apiPath = "pc/sys/role/{0}" content = deleteRest(dataConnect, apiPath, "", roleId + "", "") return content
def delFirewall(dataConnect,resourcePoolId,fireRuleId): apiPath = "wce/api/fireWall/resourcePools/{0}/ruleId/{1}"; content = deleteRest(dataConnect, apiPath, "", resourcePoolId+","+fireRuleId, ""); task = eval(content); return task['taskId']
def deleteVolume(dataConnect, volumeId): apiKey = "wce/api/volumes/{0}"; content = deleteRest(dataConnect, apiKey, "", volumeId+"", ""); task = eval(content); return task['taskId']
def delSnapshot(dataConnect,snapshotId): apiPath = "wce/api/snapShots/{0}"; content = deleteRest(dataConnect, apiPath, "",snapshotId + "", ""); task = eval(content); return task['taskId']
def deleteVmTemplate(dataConnect,vmTemplateId): apiKey = "wce/api/templates/{0}"; content = deleteRest(dataConnect, apiKey, "", vmTemplateId, ""); task = eval(content); return task['taskId']