---
title: "Cancel extraction"
method: DELETE
path: "/extractions/{id}"
tags: ["Extractions"]
---

# Cancel extraction

`DELETE /extractions/{id}`

## Request

- Base URL: `https://xquik.com/api/v1`
- URL: `https://xquik.com/api/v1/extractions/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Cancels an active extraction without charging or saving rows.

## Path parameters

- `id` string, required

## Response `200`

Extraction canceled

- object
  - `id` string, required
  - `status` 'canceled', required

## Other responses

- `401`: Unauthenticated
- `404`: Not found
- `409`: Extraction already reached a terminal state
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.

## Changes

- **2026-10-21** `245194cd4ea7`: 8 warning
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `404`
  - …4 more
- **2026-10-18** `dea38c0d032d`: 8 warning
  - added the new `x_video_too_large` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `x_video_too_large` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `x_video_too_large` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `x_video_too_large` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `404`
  - …4 more
- …earlier changes not shown

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

---

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