--- title: "terminateServerInstanceInAutoScalingGroup" slug: "compute-autoscaling-terminateserverinstanceinautoscalinggroup" updated: 2026-09-17T09:57:45Z published: 2026-09-17T09:57:45Z canonical: "api.ncloud-docs.com/compute-autoscaling-terminateserverinstanceinautoscalinggroup" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # terminateServerInstanceInAutoScalingGroup ## 概要 指定されたサーバインスタンスを返却。サーバインスタンスを削除すると同時に、グループサイズを1つ(one)減らすように選択することができます。 ## リクエスト ### リクエストパラメータ | パラメータ名 | 必須の有無 | タイプ | 制限事項 | 説明 | | --- | --- | --- | --- | --- | | serverInstanceNo | Yes | String | - | - 削除対象サーバインスタンスの識別番号 サーバインスタンスがオートスケーリンググループに属していない場合は無効 | | shouldDecrementDesiredCapacity | Yes | Boolean | - | - サーバインスタンスを削除すると同時に、所属するオートスケーリンググループの sizeを1つ減らすかどうか 減らすには`true`、減らさない場合は`false`を入力 | | responseFormatType | No | String | | - レスポンス結果の形式タイプ オプション: xml \| json デフォルト: xml | ## レスポンス ### レスポンスボディ - [CommonResponse](/docs/ja/common-apidatatype-commonresponse) ## 例 ### リクエスト例 ``` {AUTOSCALILNG_API_URL}/terminateServerInstanceInAutoScalingGroup ?serverInstanceNo=68124 &shouldDecrementDesiredCapacity=false ``` ### レスポンス例 ``` 1d7573fd-d321-400b-82bd-8a3a9692b5b6 0 success ``` ​