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.

deleteCloudPostgresqlDatabaseList

Prev Next

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
  • Enter each database as a series of "field='value'" pairs enclosed in quotation marks.
  • Up to 10 databases can be deleted at once.

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