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

VPC環境で利用できます。

Cloud DB for PostgreSQLインスタンスのデータベースを削除します。

構文

deleteCloudPostgresqlDatabaseList構文は次の通りです。

./ncloud vpostgresql deleteCloudPostgresqlDatabaseList \
    --cloudPostgresqlInstanceNo <instance-no> \
    --cloudPostgresqlDatabaseList <database-config> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

deleteCloudPostgresqlDatabaseListの実行時に指定できるオプションについて説明します。

必須オプション

deleteCloudPostgresqlDatabaseListの必須オプションです。

オプション タイプ 必須の有無 説明
--cloudPostgresqlInstanceNo String Required Cloud DB for PostgreSQLインスタンス番号
--cloudPostgresqlDatabaseList List Required 削除対象のデータベースリスト
  • 各データベースは、二重引用符の中に{フィールド=‘値’}のペアで入力
  • データベースは一度に最大10個まで削除可能

共通オプション

vpostgresqlコマンドで共通して使用するオプションについては、Cloud DB for PostgreSQL (VPC)のオプションを参照してください。

データベースの削除リクエストが成功すると、入力したデータベースが Cloud DB for PostgreSQLインスタンスから削除されます。

コマンド

コマンドの例は次の通りです。

./ncloud vpostgresql deleteCloudPostgresqlDatabaseList \
    --cloudPostgresqlInstanceNo 34567890 \
    --cloudPostgresqlDatabaseList "name='pgtest1'" "name='pgtest2'" \
    --regionCode KR \
    --output json

出力

出力の例は次の通りです。

{
  "deleteCloudPostgresqlDatabaseListResponse": {
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}