Delete Policy
DELETEhttps://api.confident-ai.com/v2/organization/governance-policies/{policyId}
Permanently deletes a governance policy and every verdict recorded under it. The projects enrolled in it are not deleted, but they are left governed by nothing until you enroll them in another policy, and the controls it applied are not deleted either 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 a single serializable transaction, so a policy cannot be deleted out from under a concurrent write that is adding a child to it.
Warning: This action cannot be undone.
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 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.