Skip to main content

DELETE /v1beta1/policies/

Permanently delete a policy. This removes the role assignment from the principal on the specified resource.

Path Parameters

id
string
required
Unique identifier (UUID) of the policy to delete.

Response

Returns an empty response with HTTP 200 status code on successful deletion.
curl -X DELETE 'https://api.frontier.example.com/v1beta1/policies/550e8400-e29b-41d4-a716-446655440000' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response Example

{}

Error Responses

error
object
code
string
Error code. Possible values:
  • not_found - Policy not found (invalid ID or policy doesn’t exist)
  • invalid_argument - Invalid request parameters or policy details
  • already_exists - Conflict error (policy cannot be deleted due to constraints)
  • internal - Internal server error
message
string
Human-readable error message.

Error Examples

{
  "error": {
    "code": "not_found",
    "message": "policy not found"
  }
}
{
  "error": {
    "code": "already_exists",
    "message": "conflict: policy cannot be deleted"
  }
}

Notes

  • The policy ID must be a valid UUID
  • Deleting a policy is permanent and cannot be undone
  • Deleting a policy removes the role assignment from the principal on the resource
  • An audit event (policy.deleted) is generated when a policy is successfully deleted
  • Returns a 404 error if the policy doesn’t exist or the ID is invalid
  • Returns a conflict error if the policy cannot be deleted due to system constraints
Deleting a policy immediately revokes the associated permissions. Ensure you understand the impact before deleting a policy.

Build docs developers (and LLMs) love