---
title: "Remove key-value collection"
method: DELETE
path: "/_fabric/{fabric}/_api/kv/{collection}"
tags: ["Key Value"]
---

# Remove key-value collection

`DELETE /_fabric/{fabric}/_api/kv/{collection}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/kv/:collection/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove key-value collection.

## Path parameters

- `fabric` string, string, required
- `collection` string, string, required

## Response `200`

Successfully removed the collection.

- KvCollectionExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean, required: Flag if there is an error in response. *False* for this response.
  - `name` string: It shows name of the collection.

## Other responses

- `404`: Failed to find specified collection.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
