Deleting a Schema

Function

This API is used to delete a schema to release all its resources.

URI

DELETE /v1/{project_id}/instances/{instance_id}/databases/{ddm_dbname}?delete_rds_data=true

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Project ID of a tenant in a region

instance_id

Yes

DDM instance ID

ddm_dbname

Yes

Name of the schema to be deleted, which is case-insensitive

delete_rds_data

No

Whether the data stored in the associated RDS DB instances is deleted. This parameter is set to true blank by default. The value can be:

  • true: indicates that the data stored in the associated RDS DB instances is deleted.
  • false: indicates that the data stored in the associated RDS DB instances is not deleted.

Request

Request parameters

None

Response

None

Example

  • Example request

    None

  • Example response
    {}

For failure responses, see Abnormal Request Results.

Status Code

For details, see Status Codes.