Skip to main content
DELETE
/
v1
/
policies
/
{id}
Delete policy
curl --request DELETE \
  --url https://api.truthlocks.com/v1/policies/{id} \
  --header 'X-API-Key: <api-key>'
{
  "code": "AUTH_REQUIRED",
  "message": "Authentication required",
  "http_status": 401
}
Deletes a policy and all associated bindings for the authenticated tenant. This action takes effect immediately — any requests that were subject to the policy will no longer be evaluated against it.
Deleting a policy is irreversible. If you want to temporarily stop enforcement, set the policy status to DISABLED instead. See policy lifecycle.

Parameters

id
string
required
UUID of the policy to delete.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string
required

Response

Policy deleted