---
title: "terminateServerInstanceInAutoScalingGroup"
slug: "cli-autoscaling-terminateserverinstanceinautoscalinggroup"
updated: 2026-04-23T08:57:03Z
published: 2026-04-23T08:58:56Z
canonical: "cli.ncloud-docs.com/cli-autoscaling-terminateserverinstanceinautoscalinggroup"
---

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

# terminateServerInstanceInAutoScalingGroup

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

오토 스케일링 그룹에 속한 서버 인스턴스 삭제


## 설명<a name="설명"></a>


지정된 서버 인스턴스 반납을 할 수 있습니다. 서버 인스턴스 삭제와 동시에 그룹 사이즈를 하나(one) 감소하게 선택할 수 있습니다.


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


| 파라미터 명                    | 필수   여부 | 타입    | 제약사항 | 설명                                                         |
| ------------------------------ | ----------- | ------- | -------- | ------------------------------------------------------------ |
| serverInstanceNo               | Yes         | String  | -        | - 삭제할 서버 인스턴스의 식별 번호</br>서버 인스턴스가 오토 스케일링 그룹에 속하지 않다면 유효하지 않음 |
| shouldDecrementDesiredCapacity | Yes         | Boolean | -        | - 서버 인스턴스 삭제와 동시에 소속 오토 스케일링 그룹의   size를 하나(one) 감소시킬지 여부</br>감소 시키려면 true이고 아니면 false를 입력함</br>      ※ 이 값이 true이면 그룹 사이즈가 기존 그룹 사이즈의 - 1이 됨 |


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


- CommonResponse 타입

| CommonResponse extends BaseObject                                                                 |
| ------------------------------------------------------------------------------------------------- |
| private String requestId;                                                                         |
| private String returnCode;                                                                        |
| private String returnMessage;                                                                     |


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

### 호출<a name="호출"></a>

```
ncloud autoscaling terminateServerInstanceInAutoScalingGroup --serverInstanceNo 401184 --shouldDecrementDesiredCapacity true
```

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


```json
{
  "terminateServerInstanceInAutoScalingGroupResponse": {
    "requestId": "163f6617-d105-47ab-8c3d-840b56051e68",
    "returnCode": "0",
    "returnMessage": "success"
  }
}
```
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<terminateServerInstanceInAutoScalingGroupResponse>
  <requestId>163f6617-d105-47ab-8c3d-840b56051e68</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
</terminateServerInstanceInAutoScalingGroupResponse>
```
