Skip to main content
DELETE
/
policies
/
{id}
curl --request DELETE \
  --url "https://api.roe-ai.com/v1/policies/POLICY_ID/?organization_id=YOUR_ORG_ID" \
  --header "Authorization: Bearer YOUR_API_KEY"
// No content - policy successfully deleted
Delete a policy and all of its versions. This operation is irreversible.
Policies cannot be deleted while they are in use by any agent. You must first unlink all agents from the policy before deleting it.

Path Parameters

ParameterTypeRequiredDescription
iduuidYesUUID of the policy to delete

Query Parameters

ParameterTypeRequiredDescription
organization_iduuidYesUUID of the organization for access control
curl --request DELETE \
  --url "https://api.roe-ai.com/v1/policies/POLICY_ID/?organization_id=YOUR_ORG_ID" \
  --header "Authorization: Bearer YOUR_API_KEY"
// No content - policy successfully deleted

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Query Parameters

organization_id
string<uuid>
required

UUID of the organization for access control. Required.

Response

204

No response body