---
title: "removeRouteTableSubnet  "
slug: "cli-vpc-routetable-removeroutetablesubnet"
updated: 2026-04-23T09:04:59Z
published: 2026-04-23T09:07:37Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# removeRouteTableSubnet  

<p class="platform-info type-vpc">VPC 환경에서 이용 가능합니다.</p>

## 개요<a name="개요"></a>

라우트 테이블에 연관된 Subnet 리스트를 제거합니다.

## 요청<a name="요청"></a>


### 요청 파라미터<a name="요청파라미터"></a>


| 파라미터명                            | 필수 여부      | 타입                   | 제약 사항                   | 설명                                         |
| ---------------------------------- | ------------ | --------------------- | ------------------------- | ------------------------------------------- |
| regionCode                         | No           | String                |                           | - 리전 코드<br/>연관 Subnet이 제거될 라우트 테이블의 리전(Region) 결정 가능<br/>regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능<br/>Default : getRegionList 조회 결과의 첫 번째 리전을 선택   |
| vpcNo                              | Yes          | String                |                           | - VPC 번호<br/>연관 Subnet이 제거될 라우트 테이블의 VPC를 결정함<br/>vpcNo는 [getVpcList](/docs/cli-vpc-vpcmanagement-getvpclist) 액션을 통해 획득 가능   |
| routeTableNo                       | Yes          | String                |                           | - 라우트 테이블 번호<br/>연관 Subnet이 제거될 라우트 테이블 번호를 결정함<br/>routeTableNo는 [getRouteTableList](/docs/cli-vpc-routetable-getroutetablelist) 액션을 통해 획득 가능  |
| subnetNoList.N                     | Yes          | List&lt;String&gt;    |                           | - 제거할 연관 Subnet 번호 리스트<br/>subnetNo는 [getSubnetList](/docs/cli-vpc-subnetmanagement-getsubnetlist) 액션을 통해 획득 가능<br/>ex) --subnetNoList 1234 2345 |
| responseFormatType                 | No           | String                |                           | - 응답 결과의 포맷 타입<br/>Options : xml \| json<br/>Default : xml |

## 응답<a name="응답"></a>


### 응답 데이터 타입<a name="응답데이터타입"></a>

- SubnetList 타입

| SubnetList extends CommonResponse |
| ---------- |
| private Integer totalRows; |
| private List<Subnet> subnetList = new ArrayList<>(); |

| Subnet |
| ---------- |
| private String subnetNo; |
| private String vpcNo; |
| private String zoneCode; |
| private String subnetName; |
| private String subnet; |
| private CommonCode subnetStatus; |
| private Date createDate; |
| private CommonCode subnetType; |
| private CommonCode usageType; |
| private String networkAclNo; |


## 예시<a name="예시"></a>

### 요청 예시<a name="요청예시"></a>


```
ncloud vpc removeRouteTableSubnet --regionCode FKR --vpcNo ***04 --routeTableNo ***38 --subnetNoList ***45
```

### 응답 예시<a name="응답예시"></a>

요청 수행 후 해당 라우트 테이블의 연관 Subnet 리스트

```xml
<removeRouteTableSubnetResponse>
  <requestId>fbbfe907-87a9-41cf-9941-7c8b7c81e66f</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <subnetList>
    <subnet>
      <subnetNo>***44</subnetNo>
      <vpcNo>3804</vpcNo>
      <zoneCode>FKR-1</zoneCode>
      <subnetName>test-***</subnetName>
      <subnet>***.***.1.0/24</subnet>
      <subnetStatus>
        <code>RUN</code>
        <codeName>run</codeName>
      </subnetStatus>
      <subnetType>
        <code>PUBLIC</code>
        <codeName>Public</codeName>
      </subnetType>
    </subnet>
  </subnetList>
</removeRouteTableSubnetResponse>
```
