Skip to content

Deleting Collections

Auth required: Authorization: <main_api_key> header.

Drops an entire collection index and its associated internal storage completely.

Example

js
await client.deleteCollection("posts");
js
await fetch("http://localhost:3000/collections/posts", {
  method: "DELETE",
  headers: { Authorization: "SecretApiKey" },
});
sh
# DELETE /collections/{collection_name}
#
# Response: 200 OK

curl -X DELETE http://localhost:3000/collections/posts \
  -H "Authorization: SecretApiKey"

Endpoint Definition

FieldValue
MethodDELETE
Path/collections/{collection}

Path Parameters

ParamTypeDescription
collectionstringCollection name

Response: 200 OK (no response body)