---
title: "Abort a chunked upload"
method: DELETE
path: "/files/uploads/{upload_id}"
tags: ["Files"]
---

# Abort a chunked upload

`DELETE /files/uploads/{upload_id}`

## Request

- Base URL: `https://app.gc.ai/api/external/v1`
- URL: `https://app.gc.ai/api/external/v1/files/uploads/{upload_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/gc-ai/apis/gc-ai-external-api/docs/files/uploads/:upload_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Discard an in-flight upload session and delete any parts already uploaded. Idempotent: aborting an unknown or already-finalized session still returns success.

## Path parameters

- `upload_id` string, uuid, required: The upload session ID from initiate.

## Response `200`

Session aborted

- AbortUploadResponse
  - `upload_id` string, uuid, required
  - `aborted` true, required

## Other responses

- `401`: Missing or malformed API key
- `403`: Invalid API key
- `429`: Rate limit exceeded. See [Rate Limits](https://docs.gc.ai/api-reference/concepts/rate-limits) for the tiers, limits, and how to back off.
- `500`: Internal server error
- `503`: Service temporarily unavailable

---

[API](https://skmtc.dev/gc-ai/apis/gc-ai-external-api.md) - [All operations](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/revisions/2bbdfddf7107?raw)
