---
title: "Delete a vector collection or specific vectors"
method: POST
path: "/vectors/delete"
tags: ["Vectors"]
---

# Delete a vector collection or specific vectors

`POST /vectors/delete`

## Request

- Base URL: `https://apipie.ai`
- URL: `https://apipie.ai/vectors/delete`
- Auth: API key in header `Authorization`

Deletes the entire collection or specified vector IDs from the collection.

## Request body

- DeleteCollectionRequest
  - `collection_name` string
  - `delete_all` boolean
  - `ids` string[]
  - `filter` object

## Response `200`

Collection or vectors deleted successfully

- DeleteCollectionResponse
  - `message` string

## Other responses

- `400`: Bad request
- `404`: Collection not found
- `500`: Internal server error

---

[API](https://skmtc.dev/apipie/apis/introduction.md) · [All operations](https://skmtc.dev/apipie/apis/introduction/llms.txt) · [OpenAPI document](https://skmtc.dev/apipie/apis/introduction/revisions/f8386be4eb3f?raw)
