Skip to main content
DELETE
This action is irreversible. Deleting a database removes all of its associated data, including ingested content, memories, metadata schema, vector indices, and graphs. There is no soft-delete and no recovery window.
The examples below use a placeholder name, database_to_delete. Replace it with the database you actually mean to destroy before running them, and check the name twice on a shared or team account, where you may not be the only one using it.

Query parameters

Deletion completion

Deletion is asynchronous: the endpoint returns once the database is deregistered, and cleanup of vector stores, graphs, and storage objects runs in the background for a few minutes. Treat deletion as complete when the database no longer appears in GET /databases, or when GET /databases/status?database=... returns DATABASE_NOT_FOUND. After deletion completes, the same database can be used in a new POST /databases request. Until then, avoid recreating the database or retrying ingestion/query against it.

Behavior notes

  • Stop in-flight work first: Stop all ingestion, polling, query, and background jobs targeting this database before deleting. Calls made after deregistration can fail with DATABASE_NOT_FOUND even while infrastructure cleanup is still running.
  • Repeat calls: Deleting an already-deleted database returns 404 DATABASE_NOT_FOUND. Deleting a database that is still deleting returns 200 again. Deleting a database that is still provisioning, or whose provisioning or earlier deletion failed, is treated as a request to tear down that database.

Errors

Common codes: 400 INVALID_INPUT (missing database), 401 UNAUTHORIZED, 404 DATABASE_NOT_FOUND, and 500 INTERNAL_ERROR (transient; retry the same DELETE). See Error Responses for the full list.
Related Resources

Authorizations

Authorization
string
header
required

API key sent as a Bearer token: "Bearer prefix.secret"

Query Parameters

database
string
required

Database identifier to delete

Example:

"acme_corp"

Response

OK

data
object
Example:
error
object | null

Null on success; an object with code and message on failure.

Example:

null

meta
object
Example:
success
boolean

Whether the request succeeded.

Example:

true