--- title: "terminateServerInstanceInAutoScalingGroup" slug: "cli-autoscaling-terminateserverinstanceinautoscalinggroup" updated: 2026-09-17T10:08:39Z published: 2026-09-17T10:08:39Z 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 ## Overview Terminate server instances that belong to the autoscaling group ## Description Terminate the assigned server instance. You can reduce group’s size by one while deleting a server instance. ## Request Parameters | Parameter | Required | Type | Restrictions | Description | | --- | --- | --- | --- | --- | | serverInstanceNo | Yes | String | - | Identification number of the server instance to delete. It is not valid unless the server instance is in an autoscaling group. | | shouldDecrementDesiredCapacity | Yes | Boolean | - | Whether to reduce the size of the associated autoscaling group at the same time as deleting the server instance. To reduce it, type true. Otherwise, enter false. ※ If this value is true, the group size will be (existing group size - 1). | ## Response Data type - CommonResponse Type | CommonResponse extends BaseObject | | --- | | private String requestId; | | private String returnCode; | | private String returnMessage; | ## Examples ### Request ``` ncloud autoscaling terminateServerInstanceInAutoScalingGroup --serverInstanceNo 401184 --shouldDecrementDesiredCapacity true ``` ### Response ``` { "terminateServerInstanceInAutoScalingGroupResponse": { "requestId": "163f6617-d105-47ab-8c3d-840b56051e68", "returnCode": "0", "returnMessage": "success" } } ``` ``` 163f6617-d105-47ab-8c3d-840b56051e68 0 success ```