---
title: "Abandon a large file’s upload"
method: DELETE
path: "/api/v1/documents/{id}/content"
tags: ["Files"]
---

# Abandon a large file’s upload

`DELETE /api/v1/documents/{id}/content`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/documents/{id}/content`
- Auth: API key in cookie `better-auth.session_token`

Aborts the open multipart upload and marks the row failed, so the parts already sent stop holding space. The document itself stays; starting again reopens from nothing.

## Path parameters

- `id` string, required

## Response `200`

Nothing is held for this document any more.

- object
  - `ok` unknown, required
  - `data` object, required
    - `documentId` string, required: Stable record id, e.g. `lse_012`.
    - `state` 'failed', required
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `401`: No session. Sign in first.
- `404`: No document with that id belongs to you.
- `409`: No multipart upload is open for this document.
- `429`: Over the file budget.

---

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