---
title: "Delete policy"
method: DELETE
path: "/policies/{id}"
tags: ["policies"]
---

# Delete policy

`DELETE /policies/{id}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/policies/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Deletes a compiled custom Rego policy from the live authorization engine. Any subsequent POST /authz/check that still names this policy_id falls through to the built-in static policy (policy.rego) rather than erroring — a deleted policy silently stops narrowing/widening decisions rather than breaking the check endpoint.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerOKResponse
  - `success` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
