Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

deleteCloudMysqlDatabaseList

Prev Next

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
  • Enter 1-30 characters, including English letters, numbers, and special character - and _.
  • The string must begin with an English letter.
  • Up to 10 databases can be deleted at once.
  • You can enter multiple items separated by spaces. (e.g., --cloudMysqlDatabaseNameList mysql_test1 mysql_test2).

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"
  }
}