Available in VPC
Delete a database from a Cloud DB for PostgreSQL instance.
Syntax
The deleteCloudPostgresqlDatabaseList syntax is as follows:
./ncloud vpostgresql deleteCloudPostgresqlDatabaseList \
--cloudPostgresqlInstanceNo <instance-no> \
--cloudPostgresqlDatabaseList <database-config> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteCloudPostgresqlDatabaseList.
Required options
The following options are required for deleteCloudPostgresqlDatabaseList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudPostgresqlInstanceNo |
String | Required | Cloud DB for PostgreSQL instance number |
--cloudPostgresqlDatabaseList |
List | Required | List of databases to delete
|
Common options
For information about the options common to all vpostgresql subcommands, see Cloud DB for PostgreSQL (VPC) options.
Examples
If the request to delete a database is successful, the specified database is deleted from the Cloud DB for PostgreSQL instance.
Command
The command example is as follows:
./ncloud vpostgresql deleteCloudPostgresqlDatabaseList \
--cloudPostgresqlInstanceNo 34567890 \
--cloudPostgresqlDatabaseList "name='pgtest1'" "name='pgtest2'" \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteCloudPostgresqlDatabaseListResponse": {
"requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}