Available in VPC
Delete a database from a Cloud DB for MySQL instance.
Syntax
The deleteCloudMysqlDatabaseList syntax is as follows:
./ncloud vmysql deleteCloudMysqlDatabaseList \
--cloudMysqlInstanceNo <instance-no> \
--cloudMysqlDatabaseNameList <database-name-list> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteCloudMysqlDatabaseList.
Required options
The following options are required for deleteCloudMysqlDatabaseList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudMysqlInstanceNo |
String | Required | Cloud DB for MySQL instance number |
--cloudMysqlDatabaseNameList |
List | Required | List of database names to delete
|
Common options
For information about the options common to all vmysql subcommands, see Cloud DB for MySQL (VPC) options.
Examples
If the request to delete a database is successful, the specified database is deleted from the Cloud DB for MySQL instance.
Command
The command example is as follows:
./ncloud vmysql deleteCloudMysqlDatabaseList \
--cloudMysqlInstanceNo 12345678 \
--cloudMysqlDatabaseNameList mysql_test1 mysql_test2 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteCloudMysqlDatabaseListResponse": {
"requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}