Skip to main content
DELETE
/
guardrails
/
{id}
Delete a guardrail
curl --request DELETE \
  --url https://openrouter.ai/api/v1/guardrails/{id} \
  --header 'Authorization: Bearer <token>'
{
  "deleted": true
}

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Path Parameters

id
string<uuid>
required

The unique identifier of the guardrail to delete

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Guardrail deleted successfully

deleted
boolean
required

Confirmation that the guardrail was deleted

Example:

true