Available in VPC
Delete Auto Scaling Groups.
You cannot delete an Auto Scaling Group if there are still servers in it or if a scaling action is in progress.
Syntax
The deleteAutoScalingGroup syntax is as follows:
./ncloud vautoscaling deleteAutoScalingGroup \
--autoScalingGroupNo <auto-scaling-group-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteAutoScalingGroup.
Required options
The following options are required for deleteAutoScalingGroup.
| Options | Type | Required | Description |
|---|---|---|---|
--autoScalingGroupNo |
String | Required | Auto Scaling Group number |
Common options
For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.
Examples
If the request to delete an Auto Scaling Group is successful, the Auto Scaling Group's configuration information and deletion status are returned.
Command
The command example is as follows:
./ncloud vautoscaling deleteAutoScalingGroup \
--autoScalingGroupNo 20461037 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteAutoScalingGroupResponse": {
"totalRows": 1,
"autoScalingGroupList": [
{
"vpcNo": "12345678",
"subnetNo": "23456789",
"serverNamePrefix": "test",
"autoScalingGroupNo": "20461037",
"autoScalingGroupName": "asg-01",
"launchConfigurationNo": "18305791",
"minSize": 0,
"maxSize": 1,
"desiredCapacity": 0,
"defaultCoolDown": 600,
"healthCheckGracePeriod": 300,
"healthCheckType": {
"code": "SVR",
"codeName": "Server"
},
"createDate": "2026-07-07T10:22:20+0900",
"autoScalingGroupStatus": {
"code": "DELTD",
"codeName": "Deleted"
},
"targetGroupNoList": [],
"inAutoScalingGroupServerInstanceList": [],
"accessControlGroupNoList": [
"67890123"
],
"suspendedProcessList": []
}
],
"requestId": "f8a9b0c1-d2e3-4567-fabc-890123456789",
"returnCode": "0",
"returnMessage": "success"
}
}