Delete policy

Delete a policy. A policy cannot be deleted while any project is assigned to it — reassign those projects first.

Authentication

AuthorizationBearer

Bearer authentication using API key. Generate an API key from the AI Guardrails Dashboard. Example: Bearer sk_123…

Path parameters

policyIdstringRequired

Response

Policy deleted
statusenumOptional
Response status
messagestringOptional

Human-readable response message

idstringOptional
Policy ID

Errors

403
Forbidden Error
404
Not Found Error
409
Conflict Error