OriginChainDB
Database endpoints

Delete a vector namespace

Deletes a namespace and erases its records in the background.

POST /v1/tenants/{tenant}/vector-indexes/{index}/namespaces/delete

Remove a named vector namespaceThe reserved default namespace cannot be deleted this way.
  1. Verify the namespaceCheck the parent index and exact namespace name.
  2. Confirm that same nameSupply the matching confirmation value.
  3. Follow background removalThe deleting state means erasure is underway.

Before you start

Use your database bearer token.

Connection setup

Set confirm to the exact namespace name. The reserved __default__ namespace cannot be deleted.

Path parameters

FieldTypeRequired
tenantstringRequired
indexstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • confirm must equal name (400 otherwise).
  • __default__ cannot be deleted;
  • clear it with a delete-all instead.
  • dry_run: true is refused with 400.
FieldTypeRequired
confirmstringOptional
dry_runbooleanOptional
namestringRequired

Read the result

state: deleting means the namespace is being removed in the background. Check the name and matching confirm value before sending; the reserved default namespace cannot be deleted this way.

Response statuses

HTTP status reference
StatusWhat to do
202Accepted
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd