Launch Week 3: Five days of launches

Delete Governance Policy

(v2)

DELETE

Permanently deletes a governance policy and every verdict recorded under it. The projects enrolled in it survive but are left governed by nothing until you enroll them elsewhere, and its controls survive and stay available to other policies. A policy that other policies extend cannot be deleted — detach it from them first. The check and the delete run in one serializable transaction, so a policy cannot be deleted out from under a concurrent write adding a child to it.

DELETE/v2/organization/governance-policies/{policyId}
curl -X DELETE "https://api.confident-ai.com/v2/organization/governance-policies/{policyId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<GOVERNANCE-POLICY-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • policyIdstringRequired

    The id of the governance policy.

Response

Delete Governance Policy succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A governance policy, identified by its id.

    Show 1 propertyHide 1 property
    • idstring

      The id of the governance policy.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI