---
title: "Detach a policy"
method: DELETE
path: "/v1beta/documents/{document_id}/policies/{policy_id}"
tags: ["Policies"]
---

# Detach a policy

`DELETE /v1beta/documents/{document_id}/policies/{policy_id}`

Detach a policy from a document.

## Path parameters

- `document_id` string, required — Document ID. Pattern: doc_[0-9a-hjkmnp-tv-z]{26}
- `policy_id` string, required — Policy ID to detach. Pattern: pol_[0-9a-hjkmnp-tv-z]{26}

## Response `200`

Success

- Empty — A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - missing or invalid API key
- `403` — Authorization failed - valid key but insufficient permissions
- `404` — Resource not found
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.net/factify-inc/apis/factify-api.md) · [All operations](https://skmtc.net/factify-inc/apis/factify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factify-inc/factify-api/revisions/8baabdfb82bf/schema)
