---
title: "Delete a collection"
method: DELETE
path: "/webdbs/collections/{collection_id}"
tags: ["webdbs"]
---

# Delete a collection

`DELETE /webdbs/collections/{collection_id}`

Deletes a collection and all data stored for it.

## Path parameters

- `collection_id` string, required — Collection ID.

## Query parameters

- `tags` string[] — Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.

## Response `200`

Collection deleted

- WebdbsDeleteResponse — Confirms that a WebDB resource was deleted.
  - `id` string, required — Deleted resource ID.
  - `deleted` boolean, required — Whether the resource was deleted.
  - `key_metadata` object — API key usage for this request.
    - `credits_consumed` integer, required — The number of credits consumed by this request.
    - `credits_remaining` integer, required — The number of credits remaining for your organization after this request.

## Other responses

- `401` — Unauthorized
- `404` — Not found

## Changes

- **2026-08-08** `182f532c2552` — 2 warning
  - added the new `WEBSITE_BLOCKED` enum value to the `error_code` response property for the response status `401`
  - added the new `WEBSITE_BLOCKED` enum value to the `error_code` response property for the response status `404`
- **2026-08-07** `3c6a01ba967f` — 2 warning
  - added the new `COLD_DOMAIN_TIMEOUT_TOO_LOW` enum value to the `error_code` response property for the response status `401`
  - added the new `COLD_DOMAIN_TIMEOUT_TOO_LOW` enum value to the `error_code` response property for the response status `404`
- **2026-08-06** `fc8ac2f5f021` — 8 warning
  - added the new `CONTENT_TOO_LARGE` enum value to the `error_code` response property for the response status `401`
  - added the new `CONTENT_TOO_LARGE` enum value to the `error_code` response property for the response status `404`
  - added the new `PDF_IMAGES_ONLY` enum value to the `error_code` response property for the response status `401`
  - added the new `PDF_IMAGES_ONLY` enum value to the `error_code` response property for the response status `404`
  - …4 more
- …earlier changes not shown

[Full history](https://skmtc.dev/context/apis/context-dev/changes/webdbs/collections/:collection_id/delete.md)

---

[API](https://skmtc.dev/context/apis/context-dev.md) · [All operations](https://skmtc.dev/context/apis/context-dev/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/context/context-dev/revisions/1febe5476266/schema)
