---
title: "Delete Agent File"
method: DELETE
path: "/api/agents/{agent_id}/files/{content_hash}"
tags: ["agent-files"]
---

# Delete Agent File

`DELETE /api/agents/{agent_id}/files/{content_hash}`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agents/{agent_id}/files/{content_hash}`
- Auth: none declared

Purge a vaulted file: deletes its bytes from object storage and archives
its reference record.

Idempotent - purging a file that was already deleted, or was never
vaulted for the caller, returns ``{"deleted": false}`` rather than a 404,
so a retry is always safe. Only purges a file vaulted under the CALLER's
own identity; a co-owner can never purge another owner's file this way.

## Path parameters

- `agent_id` string, uuid, required
- `content_hash` string, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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