Infrastructure Manager lets you delete existing previews to remove obsolete preview metadata and clean up preview resources.
Previews are automatically deleted if they target a deployment and that deployment is updated or deleted. To remove an entire deployment instead, see Delete a deployment.
To preview a deployment before deleting or provisioning resources, see Preview 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 Infra 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
- Create a new preview.
- View and list previews.
- Use Infra Manager to deploy resources.
- Learn more about Terraform with Infra Manager.