Launch Week 02 wrapped — explore all five launches

Delete Policy

DELETEhttps://api.confident-ai.com/v2/projects/{projectId}/policies/{policyId}

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 are not deleted, and the roles survive with their remaining policies — a role left with none can do nothing in the project. Check GET /v2/projects/{projectId}/roles for the roles carrying this policy before deleting it.

Warning: This action cannot be undone.

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

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • projectIdstringRequired

    The id of the project the policy belongs to.

  • policyIdstringRequired

    The id of the project policy.

Response

Delete Policy succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    Confirmation that the policy no longer exists.

    Show 1 propertyHide 1 property
    • idstring

      The id of the policy that was deleted.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI