Delete a guardrail
DELETE/api/v1/guardrails/:guardrail_id
Deletes a guardrail and its archived versions by ID.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 409
- 429
- 500
Deleted
Invalid request — a query parameter or body field the operation does not declare, or a value that fails validation
Unauthorized
Forbidden
Not found
GUARDRAIL_HAS_REFERENCES — the guardrail is still attached to a tool, agent or project; error.meta lists the references.
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Retry-After
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded