---
title: "Delete a sandbox document"
method: DELETE
path: "/v1/sandbox/documents/{document_id}/"
tags: ["Sandbox"]
---

# Delete a sandbox document

`DELETE /v1/sandbox/documents/{document_id}/`

## Request

- Base URL: `https://prod.truv.com`
- URL: `https://prod.truv.com/v1/sandbox/documents/{document_id}/`
- Auth: API key in header `X-Access-Client-Id` and API key in header `X-Access-Secret`

Deletes a library entry. Refused while any scenario still references it, whether through a payload `document_id` or a document-upload scenario selecting on the filename.

## Response `204`

Document deleted

## Other responses

- `401`: HTTP 401 Unauthorized
- `403`: The key is not a sandbox key.
- `404`: HTTP 404 Not Found
- `409`: A scenario still references this entry.

## Changes

- **2026-10-06** `07068044e23d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/truv/apis/truv-api/changes/v1/sandbox/documents/:document_id/delete.md)

---

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