OriginChainDB
Database endpoints

Delete a schema

Deletes one table and irreversibly purges all of its rows, indexes and related data.

DELETE /v1/tenants/{tenant}/schemas/{id}

Remove a table and all its dataThis operation is irreversible, not just removal of a schema description.
  1. Verify the table IDCheck the precise table targeted for removal.
  2. Delete the tablePurge its rows, indexes and related data.
  3. Inspect the removal totalsReview reported deleted rows and keys.

Before you start

Use your database bearer token.

Connection setup

Check the table ID and the purge_rows option before deleting data. The example targets demo.people.

Path parameters

FieldTypeRequired
tenantstringRequired
idstringRequired

Query parameters

FieldTypeRequired
purge_rowsbooleanOptional

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.

Read the result

The result reports removed rows and keys and marks the operation irreversible. This deletes the table's data and indexes, not just its schema definition.

Response statuses

HTTP status reference
StatusWhat to do
200OK
204No content
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.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
502Check service availability and the write outcome.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd