--- title: "deleteCloudMysqlInstance" slug: "cli-vmysql-deletecloudmysqlinstance" updated: 2026-09-17T10:11:06Z published: 2026-09-17T10:11:06Z canonical: "cli.ncloud-docs.com/cli-vmysql-deletecloudmysqlinstance" --- > ## 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. # deleteCloudMysqlInstance VPC環境で利用できます。 Cloud DB for MySQLインスタンスを削除します。 ## 構文 `deleteCloudMysqlInstance`構文は次の通りです。 ``` ./ncloud vmysql deleteCloudMysqlInstance \ --cloudMysqlInstanceNo \ [--regionCode ] \ [--output ] ``` ## オプション `deleteCloudMysqlInstance`の実行時に指定できるオプションについて説明します。 ### 必須オプション `deleteCloudMysqlInstance`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--cloudMysqlInstanceNo` | String | Required | Cloud DB for MySQLインスタンス番号 - Slave、Recoveryサーバインスタンスがある場合、削除不可 - [getCloudMysqlInstanceList](/docs/ja/cli-vmysql-getcloudmysqlinstancelist)を参照 | ### 共通オプション `vmysql`コマンドで共通して使用するオプションについては、[Cloud DB for MySQL (VPC)のオプション](/docs/ja/cli-vmysql#%EC%98%B5%EC%85%98)を参照してください。 ## 例 Cloud DB for MySQLインスタンスの削除リクエストが成功すると、インスタンスの構成情報と終了状態が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vmysql deleteCloudMysqlInstance \ --cloudMysqlInstanceNo 12345678 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "deleteCloudMysqlInstanceResponse": { "totalRows": 1, "cloudMysqlInstanceList": [ { "cloudMysqlInstanceNo": "12345678", "cloudMysqlServiceName": "test-mysql", "cloudMysqlInstanceStatusName": "deleting", "cloudMysqlInstanceStatus": { "code": "DEL", "codeName": "CLOUD DATABASE(VPC) Deleted状態" }, "cloudMysqlInstanceOperation": { "code": "DEL", "codeName": "CLOUD DATABASE(VPC) Delete OP" }, "cloudMysqlImageProductCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050", "engineVersion": "MYSQL8.0.40", "license": { "code": "GPL", "codeName": "ライセンスコード-CLOUD DATABASE(VPC)" }, "cloudMysqlPort": 13306, "isHa": true, "isMultiZone": true, "isBackup": true, "backupFileRetentionPeriod": 1, "backupTime": "10:30", "generationCode": "G2", "createDate": "2026-06-04T16:50:56+0900", "accessControlGroupNoList": [ "67890123" ], "cloudMysqlConfigList": [], "cloudMysqlServerInstanceList": [ { "cloudMysqlServerInstanceNo": "34567891", "cloudMysqlServerName": "testmysql-002-97mk", "cloudMysqlServerRole": { "code": "M", "codeName": "Master" }, "cloudMysqlServerInstanceStatusName": "deleting", "cloudMysqlServerInstanceStatus": { "code": "RUN", "codeName": "CLOUD DATABASE(VPC)サーバ Running状態" }, "cloudMysqlServerInstanceOperation": { "code": "DEL", "codeName": "CLOUD DATABASE(VPC)サーバ Delete OP" }, "cloudMysqlProductCode": "SVR.VDBAS.HICPU.C004.M008.NET.HDD.B050.G002", "regionCode": "KR", "zoneCode": "KR-2", "vpcNo": "98765432", "subnetNo": "23456790", "isPublicSubnet": false, "privateDomain": "db-1a2b3c.vpc-cdb.ntruss.com", "privateIp": "10.0.1.6", "dataStorageType": { "code": "SSD", "codeName": "SSD" }, "isStorageEncryption": false, "dataStorageSize": 10737418240, "usedDataStorageSize": 9234180096, "cpuCount": 4, "memorySize": 8589934592, "uptime": "2026-06-04T17:59:21+0900", "createDate": "2026-06-04T16:50:56+0900" }, { "cloudMysqlServerInstanceNo": "34567890", "cloudMysqlServerName": "testmysql-001-97mj", "cloudMysqlServerRole": { "code": "H", "codeName": "Standby Master" }, "cloudMysqlServerInstanceStatusName": "deleting", "cloudMysqlServerInstanceStatus": { "code": "RUN", "codeName": "CLOUD DATABASE(VPC)サーバ Running状態" }, "cloudMysqlServerInstanceOperation": { "code": "DEL", "codeName": "CLOUD DATABASE(VPC)サーバ Delete OP" }, "cloudMysqlProductCode": "SVR.VDBAS.HICPU.C004.M008.NET.HDD.B050.G002", "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "98765432", "subnetNo": "23456789", "isPublicSubnet": false, "privateDomain": "db-1a2b3c.vpc-cdb.ntruss.com", "privateIp": "10.0.0.6", "dataStorageType": { "code": "SSD", "codeName": "SSD" }, "isStorageEncryption": false, "dataStorageSize": 10737418240, "usedDataStorageSize": 9234180096, "cpuCount": 4, "memorySize": 8589934592, "uptime": "2026-06-04T18:36:03+0900", "createDate": "2026-06-04T16:50:56+0900" } ] } ], "requestId": "f2a3b4c5-d6e7-8901-fabc-234567890123", "returnCode": "0", "returnMessage": "success" } } ```