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.
curl -X DELETE "https://api.confident-ai.com/v2/organization/governance-policies/{policyId}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"id": "<GOVERNANCE-POLICY-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
policyIdstringRequiredThe id of the governance policy.
Response
Delete Governance Policy succeeded.
successbooleanIndicates if the request was successful.
dataobjectA governance policy, identified by its id.
Show 1 propertyHide 1 property
idstringThe id of the governance policy.
deprecatedbooleanIndicates if this endpoint is deprecated.