Skip to main content
DELETE
This action is irreversible. Deleting a collection removes all knowledge, memories, embeddings, and graph data stored under that collection. The parent database and its other collections are not affected. There is no soft-delete and no recovery window.

Query parameters

While cleanup is running

Deletion is asynchronous: a 200 means cleanup was accepted, not that it finished. From the moment the API accepts the call, the collection is fenced:
  • Every ingest, query, and read addressed to it returns 404, so nothing can write into a collection that is being purged. Sibling collections in the same database, and the database itself, are unaffected and keep serving normally.
  • Ingestion already in flight for this collection is cancelled before any store is purged, so a job that started before the delete cannot repopulate it afterwards.
  • The collection disappears from List Collections once its records are dropped, which happens before the slower vector, graph, and object-store cleanup completes.
There is no collection-level completion endpoint, and a repeated DELETE returning 200 is not a completion signal either. To reuse the collection name:
  • Ingest the new context. While cleanup is running, the API returns 404. Retry later.
  • Writes succeed only after cleanup finishes in every store. A successful write also creates the collection, so use it to ingest context rather than to check deletion status.

Behavior notes

  • Repeat calls are the retry path: Deleting the same collection again is idempotent. A duplicate call while cleanup is still running joins the delete in progress rather than starting a second one. If a cleanup fails part-way, the collection stays fenced and re-issuing the same DELETE re-runs it.
  • In-flight ingestion cancelled by deletion is reported as failed.
  • Dashboard: Owners can also expand a database on the Databases page and delete a collection from the inline list.

Errors

Common codes: 400 INVALID_INPUT (database or collection is missing), 404 DATABASE_NOT_FOUND (a database that is itself being deleted returns 404 NOT_FOUND), 401 UNAUTHORIZED, 503 SERVICE_UNAVAILABLE (an earlier failed deletion of this collection is still releasing its lock; the collection stays fenced, so retry in a few seconds), and 500 INTERNAL_ERROR (transient; retry the same DELETE). See Error Responses for the full list.

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <your_api_key>.

Query Parameters

database
string
required

Database identifier

Example:

"acme_corp"

collection
string
required

Collection identifier

Example:

"team_docs"

Response

OK

data
TenantsSubTenantDeleteResponse · object
Example:
error
HandlerApiError · object | null

Error details on failure, or null on success.

Example:

null

meta
HandlerResponseMeta · object
Example:
success
boolean

Whether the request succeeded.

Example:

true