---
title: "Delete a document"
method: DELETE
path: "/v1/data/{path}"
tags: ["Data API"]
---

# Delete a document

`DELETE /v1/data/{path}`

This API endpoint deletes an existing document from the server

## Response `204`

Success

## Other responses

- `404` — Not found (for example, a requested policy module or document does not exist)
- `500` — Server error

---

[API](https://skmtc.net/open-policy-agent/apis/open-policy-agent-opa-rest-api.md) · [All operations](https://skmtc.net/open-policy-agent/apis/open-policy-agent-opa-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open-policy-agent/open-policy-agent-opa-rest-api/revisions/47f6f2062932/schema)
