--- title: "deleteTargetGroups" slug: "cli-vloadbalancer-targetgroup-deletetargetgroups" tags: ["Load Balancer", "VPC"] updated: 2026-10-08T05:08:35Z published: 2026-10-08T05:08:35Z canonical: "cli.ncloud-docs.com/cli-vloadbalancer-targetgroup-deletetargetgroups" --- > ## 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. # deleteTargetGroups 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 \ [--regionCode ] \ [--output ] ``` ## 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 - You can enter multiple items separated by spaces (e.g., `--targetGroupNoList 55667788 55667799`). - See [getTargetGroupList](/docs/en/cli-vloadbalancer-targetgroup-gettargetgrouplist). | ### Common options For information about the options common to all `vloadbalancer` subcommands, see [Load Balancer (VPC) options](/docs/en/cli-vloadbalancer#%EC%98%B5%EC%85%98). ## 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" } } ```