Delete previews

This page describes how to delete existing previews. When you delete a preview, you delete the preview's metadata.

Previews are automatically deleted if they target a deployment and that deployment is updated or deleted.

If you have not created a preview, see Preview a deployment.

If you want to delete a deployment, see Delete a deployment.

Before you begin

Ensure that you have the IAM permissions needed to delete previews: roles/config.admin.

Delete a preview

To delete a preview:

gcloud infra-manager previews delete projects/PROJECT_ID/locations/LOCATION/previews/PREVIEW_ID

Replace:

  • PROJECT_ID is the project ID where Infrastructure Manager runs.
  • LOCATION is the location where Infra Manager runs. See Infrastructure Manager locations for the list of valid locations.
  • PREVIEW_ID is the preview identifier of the preview.

What's next