OriginChainDB
Database endpoints

Delete role

Remove a database role. References from grants, policies, users or other roles prevent deletion unless cascade is requested.

DELETE /v1/tenants/{tenant}/db/roles/{name}

Remove a role after checking dependenciesCascade can also affect grants, memberships, inheritance and policies.
  1. Review role referencesIdentify users, roles and policies that rely on it.
  2. Choose deletion behaviorReferences block deletion unless cascade is requested.
  3. Inspect affected dependenciesReview the returned deletion and cascade details.

Before you start

Use your database bearer token.

Connection setup

Use an identity authorized to manage access. Remove dependent grants, users and policies, or review the cascade option.

Path parameters

FieldTypeRequired
tenantstringRequired
namestringRequired

Query parameters

FieldTypeRequired
cascadebooleanOptional

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 the role removal. When cascade is requested, the cascaded groups identify affected grants, members, inherited roles and policies. Review these dependencies before using cascade.

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