Delete a DashVector collection and all its data through the HTTP API.
Deleting a collection permanently removes all data in it and cannot be undone.
Prerequisites
Before you begin, ensure that you have:
A DashVector cluster. For more information, see Create a cluster
An API key. For more information, see Manage API keys
The latest version of the DashVector SDK. For more information, see Install DashVector SDK
Method and URL
DELETE https://{Endpoint}/v1/collections/{CollectionName}Example
The following example deletes a collection named quickstart.
Create the quickstart collection before running this example. For instructions, see the "Example" section of Create a collection.
curl -XDELETE -H 'dashvector-auth-token: <your-api-key>' \
https://<your-cluster-endpoint>/v1/collections/quickstart
# Example response:
# {"request_id":"19215409-ea66-4db9-8764-26ce2eb5bb99","code":0,"message":""}Replace the following placeholders with your actual values:
Placeholder | Description |
| Your API key |
| The endpoint of your cluster, available on the cluster details page in the console |
Request parameters
Parameter | Location | Type | Required | Description |
{Endpoint} | path | str | Yes | The endpoint of your cluster. Find this on the cluster details page in the console. |
{CollectionName} | path | str | Yes | The name of the collection to delete. |
dashvector-auth-token | header | str | Yes | The API key for authentication. |
Response parameters
Parameter | Type | Description | Example |
code | int | Status code. | 0 |
message | str | Response message. Empty on success. | success |
request_id | str | Unique request identifier for troubleshooting. | 19215409-ea66-4db9-8764-26ce2eb5bb99 |