---
title: "Delete a file"
method: DELETE
path: "/files/{id}"
tags: ["Files"]
---

# Delete a file

`DELETE /files/{id}`

## Request

- Base URL: `https://api.varg.ai/v2`
- URL: `https://api.varg.ai/v2/files/{id}`
- Auth: HTTP bearer

Soft-deletes the file (it disappears from lists; the underlying object is garbage-collected later).

## Path parameters

- `id` string, required

## Response `200`

Deleted

- object
  - `deleted` boolean

## Other responses

- `401`: Missing or invalid API key / JWT
- `404`: Unknown file (or not owned by the caller)

## Changes

- **2026-10-20** `43bcf5ea398d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/varg/apis/varg-api/changes/files/:id/delete.md)

---

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