---
title: "Delete every kept inspection of one file, or everything"
method: DELETE
path: "/api/v1/history"
tags: ["Retention"]
---

# Delete every kept inspection of one file, or everything

`DELETE /api/v1/history`

## Request

- Base URL: `https://tamperlens.com` (the document declares no server; this is the origin it was published from)
- URL: `https://tamperlens.com/api/v1/history`
- Auth: none declared

`?sha256=<64 hex>` deletes every record of that file: the server computes the account's HMAC of it, so you never handle the salt. `?confirm=all` deletes everything this account kept, with its feedback, and discards the account's salt; that one is a dashboard session action, and an API key gets 403 `session_required`. One of the two is required. Kept files go with their records in both cases.

## Query parameters

- `sha256` string
- `confirm` string

## Response `200`

Default Response

- object

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `415`: Default Response
- `429`: Default Response

---

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