Delete realms and attachments

This document explains how to delete realms and attachments. After you create a realm, you can't edit it. If you want to make changes to the realm, you must delete it and create a new realm.

Required roles

Delete attachments

To delete attachments, run the gcloud beta network-security secure-access-connect attachments delete command command:

gcloud beta network-security secure-access-connect attachments delete ATTACHMENT_ID \
    --project=PROJECT_ID \
    --location=REGION

Replace the following:

  • ATTACHMENT_ID: the attachment ID
  • PROJECT_ID: the project that contains the attachment
  • REGION: the region where the attachment is located

Delete realms

You must delete all attachments before you can delete a realm. To delete a realm, run the gcloud beta network-security secure-access-connect realms delete command:

gcloud beta network-security secure-access-connect realms delete REALM_ID \
    --project=PROJECT_ID

Replace the following:

  • REALM_ID: the realm ID
  • PROJECT_ID: the project that contains the realm