---
title: "Cancel a crawl. A queued crawl is canceled and refunded at once; a running one stops at its next checkpoint and is charged for the pages read"
method: DELETE
path: "/v1/crawl/{id}"
---

# Cancel a crawl. A queued crawl is canceled and refunded at once; a running one stops at its next checkpoint and is charged for the pages read

`DELETE /v1/crawl/{id}`

## Request

- Base URL: `https://api.serpkite.com`
- URL: `https://api.serpkite.com/v1/crawl/{id}`
- Auth: HTTP bearer

`404` when there is no such crawl, `409` when it already finished.

## Response `200`

`canceled` (it was queued: refunded at once) or `canceling` (it is running and stops at its next checkpoint)

- TaskCancelResponse
  - `id` string, uuid, required
  - `status` 'canceled' | 'canceling', required

## Other responses

- `401`: Error
- `404`: Error
- `409`: Error
- `429`: Error

---

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