---
title: "Delete records"
method: POST
path: "/vectors/delete"
tags: ["Vector Operations"]
---

# Delete records

`POST /vectors/delete`

Delete records by id or by metadata from a single namespace.

For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data).

## Headers

- `X-Pinecone-Api-Version` string, required

## Request body

- DbDataDeleteRequest — The request for the `delete` operation.
  - `ids` string[] — Vectors to delete.
  - `deleteAll` boolean — This indicates that all vectors in the index namespace should be deleted.
  - `namespace` string — The namespace to delete records from, if applicable.
  - `filter` object — If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).

## Response `200`

A successful response.

- DbDataDeleteResponse — The response for the `delete` operation.

## Other responses

- `400` — Bad request. The request body included invalid request parameters.
- `4XX` — An unexpected error response.
- `5XX` — An unexpected error response.

---

[API](https://skmtc.net/pinecone/apis/pinecone-api.md) · [All operations](https://skmtc.net/pinecone/apis/pinecone-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinecone/pinecone-api/revisions/35876583485d/schema)
