deleteVpc

Prev Next

Available in VPC

Delete a VPC by specifying the VPC number.

Syntax

The deleteVpc syntax is as follows:

./ncloud vpc deleteVpc \
    --vpcNo <vpc-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running deleteVpc.

Required options

The following options are required for deleteVpc.

Options Type Required Description
--vpcNo String Required VPC number

Common options

For information about the options common to all vpc subcommands, see VPC options.

Examples

If the VPC deletion request is successful, the VPC's configuration information and termination status are returned.

Command

The command example is as follows:

./ncloud vpc deleteVpc \
    --vpcNo 12345678 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "deleteVpcResponse": {
    "totalRows": 1,
    "vpcList": [
      {
        "vpcNo": "12345678",
        "vpcName": "test-vpc-01",
        "ipv4CidrBlock": "10.0.0.0/16",
        "vpcStatus": {
          "code": "TERMTING",
          "codeName": "Deleting"
        },
        "regionCode": "KR",
        "vpcType": "NORMAL",
        "createDate": "2026-07-07T14:07:27+0900"
      }
    ],
    "requestId": "d4e5f6a7-b8c9-0123-defa-456789012345",
    "returnCode": "0",
    "returnMessage": "success"
  }
}