Updated on 2025-09-19 GMT+08:00

Deleting a Database User

Function

This API is used to delete a database user.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/clusters/{cluster_id}/db-manager/users/{name}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. To obtain the value, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

cluster_id

Yes

String

Definition

Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID.

Constraints

N/A

Range

N/A

Default Value

N/A

name

Yes

String

Definition

Database username.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

cascade

No

Boolean

Definition

Whether the name is case-insensitive.

Constraints

N/A

Range

N/A

Default Value

false

Request Parameters

None

Response Parameters

Status code: 200

Operation succeeded.

None

Example Requests

Delete the database user user1.

DELETE https://{Endpoint}/v1/0536cdee2200d5912f7cc00b877980f1/clusters/a89aea88-7ea2-40bd-8ac8-8b93e169e5d6/db-manager/users/user1

Example Responses

Status code: 200

Operation succeeded.

{ }

Status Codes

Status Code

Description

200

Operation succeeded.

400

Request error.

401

Authentication failed.

403

You do not have required permissions.

404

No resources found.

500

Internal server error.

503

Service unavailable.