Delete a target group
Alert
Before deleting a target group, detach it from the network load balancer.
You cannot restore a target group after it is deleted.
Management console
CLI
API
To delete a target group:
- Open the Load Balancer section in the folder you want to delete the target group from.
- Click in the row of the target group to delete.
- In the menu that opens, click Delete.
- In the window that opens, click Delete.
If you don't have the Yandex.Cloud command line interface yet, install it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See the description of the CLI's delete target group command:
$ yc load-balancer target-group delete --help
-
Get a list of target groups:
$ yc load-balancer target-group list +----------------------+-------------------+-------+ | ID | NAME | ... | +----------------------+-------------------+-------+ ... | b7roi767je4c574iivrk | test-target-group | ... | ... +----------------------+-------------------+-------+
-
Choose the
ID
orNAME
of the target group to delete. -
Delete the target group from the default folder:
$ yc load-balancer target-group delete b7roi767je4c574iivrk
You can delete target groups using the delete API method.