Available in VPC
Delete a route table by specifying a route table number. Route tables with associated subnets and automatically generated default route tables cannot be deleted.
Syntax
The deleteRouteTable syntax is as follows:
./ncloud vpc deleteRouteTable \
--routeTableNo <route-table-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteRouteTable.
Required options
The following options are required for deleteRouteTable.
| Options | Type | Required | Description |
|---|---|---|---|
--routeTableNo |
String | Required | Route table number
|
Common options
For information about the options common to all vpc subcommands, see VPC options.
Examples
If the request to delete a route table is successful, the configuration information for the route table is returned.
Command
The command example is as follows:
./ncloud vpc deleteRouteTable \
--routeTableNo 45678901 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteRouteTableResponse": {
"totalRows": 1,
"routeTableList": [
{
"routeTableNo": "45678901",
"routeTableName": "test-route-table",
"regionCode": "KR",
"vpcNo": "12345678",
"supportedSubnetType": {
"code": "PUBLIC",
"codeName": "Public"
},
"isDefault": false,
"routeTableStatus": {
"code": "RUN",
"codeName": "In operation"
},
"routeTableDescription": "Updated route table description"
}
],
"requestId": "e1f2a3b4-c5d6-7890-efab-123456789012",
"returnCode": "0",
"returnMessage": "success"
}
}