Delete a target group


    Before deleting a target group, detach it from the load balancer. You cannot restore a target group after it is deleted.

    To delete a target group:

    1. Open the Load Balancer section in the folder you want to delete the target group from.
    2. Click image in the row of the target group to delete.
    3. In the menu that opens, click Delete.
    4. 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.

    1. See the description of the CLI's delete target group command:

      $ yc load-balancer target-group delete --help
    2. Get a list of target groups:

      $ yc load-balancer target-group list
      |          ID          |       NAME        |  ...  |
      | b7roi767je4c574iivrk | test-target-group |  ...  |
    3. Choose the ID or NAME of the target group to delete.

    4. 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.