OriginChainDB
Database endpoints

Delete user

Deletes a database user and all of its credentials.

DELETE /v1/tenants/{tenant}/db/users/{username}

Remove a database user and credentialsThis does not remove an organization member.
  1. Identify the database userCheck the username in the selected tenant.
  2. Delete the userRemove the account and its database credentials.
  3. Confirm the removalRead the returned deletion result.

Before you start

Use your database bearer token.

Connection setup

Use an identity authorized to manage access in this tenant.

Path parameters

FieldTypeRequired
tenantstringRequired
usernamestringRequired

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

deleted reports that the database user and its credentials were removed. This is a database-user operation, not removal of an organization member.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
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.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd