--- title: "terminateServerInstanceInAutoScalingGroup" slug: "cli-autoscaling-terminateserverinstanceinautoscalinggroup" tags: ["Auto Scaling"] updated: 2026-09-17T09:16:03Z published: 2026-09-17T09:16:03Z 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 ## 개요 오토 스케일링 그룹에 속한 서버 인스턴스 삭제 ## 설명 지정된 서버 인스턴스 반납을 할 수 있습니다. 서버 인스턴스 삭제와 동시에 그룹 사이즈를 하나(one) 감소하게 선택할 수 있습니다. ## 요청 파라미터 | 파라미터 명 | 필수 여부 | 타입 | 제약사항 | 설명 | | --- | --- | --- | --- | --- | | serverInstanceNo | Yes | String | - | - 삭제할 서버 인스턴스의 식별 번호 서버 인스턴스가 오토 스케일링 그룹에 속하지 않다면 유효하지 않음 | | shouldDecrementDesiredCapacity | Yes | Boolean | - | - 서버 인스턴스 삭제와 동시에 소속 오토 스케일링 그룹의 size를 하나(one) 감소시킬지 여부 감소 시키려면 true이고 아니면 false를 입력함 ※ 이 값이 true이면 그룹 사이즈가 기존 그룹 사이즈의 - 1이 됨 | ## 응답 데이터 타입 - CommonResponse 타입 | CommonResponse extends BaseObject | | --- | | private String requestId; | | private String returnCode; | | private String returnMessage; | ## 예시 ### 호출 ``` ncloud autoscaling terminateServerInstanceInAutoScalingGroup --serverInstanceNo 401184 --shouldDecrementDesiredCapacity true ``` ### 응답 ``` { "terminateServerInstanceInAutoScalingGroupResponse": { "requestId": "163f6617-d105-47ab-8c3d-840b56051e68", "returnCode": "0", "returnMessage": "success" } } ``` ``` 163f6617-d105-47ab-8c3d-840b56051e68 0 success ```