--- title: "terminateServerInstanceInAutoScalingGroup" slug: "cli-autoscaling-terminateserverinstanceinautoscalinggroup" updated: 2026-09-17T10:11:06Z published: 2026-09-17T10:11:06Z 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 ## 概要 Auto Scaling Groupに属するサーバインスタンスの削除 ## 説明 指定されたサーバインスタンスを返却できます。サーバインスタンスの削除と同時にグループサイズを一つ(one)減少させるように選択できます。 ## リクエストパラメータ | パラメータ名 | 必須 | タイプ | 制約事項 | 説明 | | --- | --- | --- | --- | --- | | serverInstanceNo | Yes | String | - | 削除するサーバインスタンスの識別番号です。 サーバインスタンスがAuto Scaling Groupに属してない場合は有効ではありません。 | | shouldDecrementDesiredCapacity | Yes | Boolean | - | サーバインスタンスの削除と同時に所属Auto Scaling Groupの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 ```