Available in VPC
Delete a target group. You can't delete target groups in use.
Syntax
The deleteTargetGroups syntax is as follows:
./ncloud vloadbalancer deleteTargetGroups \
--targetGroupNoList <target-group-no-list> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteTargetGroups.
Required options
The following options are required for deleteTargetGroups.
| Options | Type | Required | Description |
|---|---|---|---|
--targetGroupNoList |
List | Required | List of target group numbers
|
Common options
For information about the options common to all vloadbalancer subcommands, see Load Balancer (VPC) options.
Examples
If the request to delete a target group is successful, the configuration information for the deleted target group is returned.
Command
The command example is as follows:
./ncloud vloadbalancer deleteTargetGroups \
--targetGroupNoList 55667799 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteTargetGroupsResponse": {
"totalRows": 1,
"targetGroupList": [
{
"targetGroupNo": "55667799",
"targetGroupName": "lb-test-tg2",
"targetType": {
"code": "VSVR",
"codeName": "Server (VPC)"
},
"vpcNo": "12345678",
"targetGroupProtocolType": {
"code": "HTTP",
"codeName": "HTTP protocol"
},
"targetGroupPort": 80,
"targetGroupDescription": "",
"useStickySession": false,
"useProxyProtocol": false,
"algorithmType": {
"code": "RR",
"codeName": "Round Robin"
},
"createDate": "2026-07-07T17:12:57+0900",
"regionCode": "KR",
"loadBalancerInstanceNo": "",
"healthCheckProtocolType": {
"code": "HTTP",
"codeName": "HTTP protocol"
},
"healthCheckPort": 80,
"healthCheckUrlPath": "/",
"healthCheckHttpMethodType": {
"code": "GET",
"codeName": "HTTP GET Method"
},
"healthCheckCycle": 30,
"healthCheckUpThreshold": 2,
"healthCheckDownThreshold": 2,
"targetNoList": []
}
],
"requestId": "e1f2a3b4-c5d6-7890-efab-123456789012",
"returnCode": "0",
"returnMessage": "success"
}
}