> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

You can delete a high availability controller when you no longer need failover
protection for your virtual machine (VM) instance. You must also delete the
controller before you suspend, reset, or delete the VM, make unsupported changes
to the VM, or recreate the controller.

This document explains how to delete a high availability controller. For more
information about the requirements and limitations that apply when you manage
high availability controllers, see
[About high availability controllers](https://docs.cloud.google.com/compute/docs/instances/about-ha-controllers.md.txt).

## Before you begin

- If you haven't already, set up [authentication](https://docs.cloud.google.com/compute/docs/authentication.md.txt). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:

  Select the tab for how you plan to use the samples on this page:

  ### Console


  When you use the Google Cloud console to access Google Cloud services and
  APIs, you don't need to set up authentication.

  ### gcloud

  1.
     [Install](https://docs.cloud.google.com/sdk/docs/install) the Google Cloud CLI.

     After installation,
     [initialize](https://docs.cloud.google.com/sdk/docs/initializing) the Google Cloud CLI by running the following command:

     ```bash
     gcloud init
     ```


     If you're using an external identity provider (IdP), you must first
     [sign in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud.md.txt).

     > [!NOTE]
     > **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.

  2. [Set a default region and zone](https://docs.cloud.google.com/compute/docs/gcloud-compute.md.txt#set_default_zone_and_region_in_your_local_client).

  ### REST


  To use the REST API samples on this page in a local development environment, you use the
  credentials you provide to the gcloud CLI.
  1. [Install](https://docs.cloud.google.com/sdk/docs/install) the Google Cloud CLI.
  2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud.md.txt).


  For more information, see
  [Authenticate for using REST](https://docs.cloud.google.com/docs/authentication/rest.md.txt)
  in the Google Cloud authentication documentation.

### Required roles


To get the permissions that
you need to delete a high availability controller,

ask your administrator to grant you the
[Compute Instance Admin (v1)](https://docs.cloud.google.com/iam/docs/roles-permissions/compute.md.txt#compute.instanceAdmin.v1) (`roles/compute.instanceAdmin.v1`) IAM role on the project.


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


This predefined role contains

the permissions required to delete a high availability controller. To see the exact permissions that are
required, expand the **Required permissions** section:


#### Required permissions

The following permissions are required to delete a high availability controller:

- To delete a high availability controller: `compute.haControllers.delete`


You might also be able to get
these permissions
with [custom roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles.md.txt) or
other [predefined roles](https://docs.cloud.google.com/iam/docs/roles-overview.md.txt#predefined).

## Delete a high availability controller

When you delete a high availability controller, Compute Engine does the
following:

1. Releases the capacity guarantee in the secondary zone.

2. If the high availability controller uses automatic network configuration,
   then deletes the internal backend service and forwarding rule that the
   controller created. If you configured the high availability controller with
   your own regional backend service, then Compute Engine keeps that
   backend service.

3. Keeps the VM in the primary zone, its attached regional disks, and any
   reservations or sole-tenant node groups.

4. Removes operation locks from the VM so that you can suspend, reset, delete,
   or modify any property of the VM.

To delete a high availability controller, select one of the following options.
If you want to delete multiple high availability controllers at once, then use
the Google Cloud console.

### Console

1. In the Google Cloud console, go to the **VM instances** page.

   [Go to VM instances](https://console.cloud.google.com/compute/instances)
2. Click the **High availability controllers** tab. A pane that shows a
   list of high availability controllers in your project appears.

3. Select the rows that contain the high availability controllers that you
   want to delete. Then, click
   **Delete**.

4. In the **Delete high availability controller** window that appears,
   enter `delete`, and then, to confirm, click **Delete**.

### gcloud

To delete a high availability controller, use the
[`gcloud preview compute ha-controllers delete` command](https://docs.cloud.google.com/sdk/gcloud/reference/preview/compute/ha-controllers/delete):

    gcloud preview compute ha-controllers delete HA_CONTROLLER_NAME \
        --region=REGION

Replace the following:

- `HA_CONTROLLER_NAME`: the name of the high availability
  controller that you want to delete.

- `REGION`: the region where the high availability
  controller exists.

### REST

To delete a high availability controller, make a `DELETE` request to the
[preview `haControllers.delete` method](https://docs.cloud.google.com/compute/docs/reference/rest/2026-10-01-preview/haControllers/delete.md.txt)
with the `$apiVersion=2026-10-01-preview` query parameter in the request
URL:

    DELETE https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/haControllers/HA_CONTROLLER_NAME?$apiVersion=2026-10-01-preview

Replace the following:

- `PROJECT_ID`: the ID of your project.

- `REGION`: the region where the high availability
  controller exists.

- `HA_CONTROLLER_NAME`: the name of the high availability
  controller that you want to delete.

## What's next

- [Create a high availability controller](https://docs.cloud.google.com/compute/docs/instances/create-ha-controller.md.txt)

- Learn how to manage the unlocked VM after you delete its associated high
  availability controller:

  - [Update the VM's properties](https://docs.cloud.google.com/compute/docs/instances/update-instance-properties.md.txt)

  - [Suspend or resume the VM](https://docs.cloud.google.com/compute/docs/instances/suspend-resume-instance.md.txt)

  - [Delete the VM](https://docs.cloud.google.com/compute/docs/instances/deleting-instance.md.txt)