> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete guardrail policy

> Delete guardrail policy through the workspace-scoped public API.

Deletes the saved policy directly. There is no draft or publish step. A missing policy returns 404.

See the [Guardrails overview](/en/api-reference/guardrails) for shared schemas and runtime limitations.

<ParamField header="Authorization" type="string" required>Bearer workspace API key. The key needs `write` scope.</ParamField>
<ParamField path="id" type="string" required>Guardrail policy UUID.</ParamField>

## Response

<ResponseField name="success" type="boolean">`true` after deletion.</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url "https://api-prod.usefini.com/v2/guardrail-policies/22222222-2222-4222-8222-222222222222/public" \
    --header "Authorization: Bearer $FINI_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch("https://api-prod.usefini.com/v2/guardrail-policies/22222222-2222-4222-8222-222222222222/public", {
    method: "DELETE",
    headers: { Authorization: `Bearer ${process.env.FINI_API_KEY}` },
  });
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
  console.log(await response.json());
  ```

  ```python Python theme={null}
  import os
  import requests

  response = requests.delete(
      "https://api-prod.usefini.com/v2/guardrail-policies/22222222-2222-4222-8222-222222222222/public",
      headers={"Authorization": f"Bearer {os.environ['FINI_API_KEY']}"},
      timeout=30,
  )
  response.raise_for_status()
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>


## Related topics

- [Overview](/en/api-reference/guardrails.md)
- [Update guardrail policy](/en/api-reference/update-guardrail-policy.md)
- [Get guardrail policy](/en/api-reference/get-guardrail-policy.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.