---
title: "deleteSubnet "
slug: "cli-vpc-subnetmanagement-deletesubnet"
updated: 2026-04-23T09:04:58Z
published: 2026-04-23T09:07:33Z
---

> ## 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.

# deleteSubnet 

VPC 환경에서 이용 가능합니다.

## 개요

Subnet을 삭제합니다.

## 요청

### 요청 파라미터

| 파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
| --- | --- | --- | --- | --- |
| regionCode | No | String |  | - 리전 코드 삭제할 Subnet의 리전(Region) 결정 가능 regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능 Default : getRegionList 조회 결과의 첫 번째 리전을 선택 |
| subnetNo | Yes | String |  | - 삭제할 Subnet 번호 subnetNo는 [getSubnetList](/docs/cli-vpc-subnetmanagement-getsubnetlist) 액션을 통해 획득 가능 |
| responseFormatType | No | String |  | - 응답 결과의 포맷 타입 Options : xml \| json Default : xml |

## 응답

### 응답 데이터 타입

- SubnetList 타입

| SubnetList extends CommonResponse |
| --- |
| private Integer totalRows; |
| private List<subnet data-tomark-pass=""> subnetList = new ArrayList&lt;&gt;();</subnet> |

| 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; |

## 예시

### 요청 예시

```
ncloud vpc deleteSubnet --regionCode FKR --subnetNo ***43
```

### 응답 예시

```
<deleteSubnetResponse>
  <requestId>a0746ba0-488a-45d1-94e9-a62dea9db1a8</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <subnetList>
    <subnet>
      <subnetNo>***43</subnetNo>
      <vpcNo>***04</vpcNo>
      <zoneCode>FKR-1</zoneCode>
      <subnetName>test-***</subnetName>
      <subnet>***.***.1.0/24</subnet>
      <subnetStatus>
        <code>TERMTING</code>
        <codeName>terminating</codeName>
      </subnetStatus>
      <createDate>2020-07-31T14:38:00+0900</createDate>
      <subnetType>
        <code>PUBLIC</code>
        <codeName>Public</codeName>
      </subnetType>
      <usageType>
        <code>GEN</code>
        <codeName>General</codeName>
      </usageType>
      <networkAclNo>***31</networkAclNo>
    </subnet>
  </subnetList>
</deleteSubnetResponse>
```
