Delete a high availability controller

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.

Before you begin

  • If you haven't already, set up authentication. 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 the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:

      gcloud init

      If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.

    2. Set a default region and zone.

    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.

      Install the Google Cloud CLI.

      If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.

    For more information, see Authenticate for using REST 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) (roles/compute.instanceAdmin.v1) IAM role on the project. For more information about granting roles, see Manage access to projects, folders, and organizations.

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 or other predefined roles.

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

  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:

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

Try it for yourself

If you're new to Google Cloud, create an account to evaluate how Compute Engine performs in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.

Try Compute Engine free