---
title: "Delete a policy"
method: DELETE
path: "/api/v1/policies/{policyId}"
tags: ["Policies"]
---

# Delete a policy

`DELETE /api/v1/policies/{policyId}`

## Request

- Base URL: `https://policyforge.co`
- URL: `https://policyforge.co/api/v1/policies/{policyId}`
- Auth: HTTP bearer

Permanently delete a policy and its hosted page. Pass delete_consent_records=true to also delete the consent records linked to this policy.

## Query parameters

- `delete_consent_records` boolean

## Response `200`

Policy deleted

- object
  - `message` string
  - `deleted_consent_records` integer: Only present when delete_consent_records=true

## Other responses

- `401`: Missing or invalid API key
- `404`: Resource not found
- `429`: Rate limit exceeded

---

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