Delete Project Policy
(v2)DELETE
Permanently deletes a project policy. Unlike a role, a policy in use is not protected: it is detached from every project role holding it, and members of those roles lose the permissions it granted on their next request. The permissions themselves survive, as do the roles — though a role left with no policies can do nothing in the project. List the project's roles first to see which carry this policy.
curl -X DELETE "https://api.confident-ai.com/v2/projects/{projectId}/policies/{policyId}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"id": "<POLICY-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
projectIdstringRequiredThe id of the project the policy belongs to.
policyIdstringRequiredThe id of the project policy.
Response
Delete Project Policy succeeded.
successbooleanIndicates if the request was successful.
dataobjectConfirmation that the policy no longer exists.
Show 1 propertyHide 1 property
idstringThe id of the policy that was deleted.
deprecatedbooleanIndicates if this endpoint is deprecated.