[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[[["\u003cp\u003eThis page details the process of deleting existing previews, which involves removing the preview's metadata.\u003c/p\u003e\n"],["\u003cp\u003ePreviews are automatically deleted when their target deployment is either updated or deleted.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a preview requires \u003ccode\u003eroles/config.admin\u003c/code\u003e IAM permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud infra-manager previews delete\u003c/code\u003e command, with the project ID, location, and preview ID, is used to delete a preview.\u003c/p\u003e\n"]]],[],null,["# Delete previews\n\nThis page describes how to delete existing previews. When you delete a\npreview, you delete the\n[preview's metadata](/infrastructure-manager/docs/deployments-revisions#preview_metadata).\n\nPreviews are automatically deleted if they target a deployment and that\ndeployment is updated or deleted.\n\nIf you have not created a preview, see\n[Preview a deployment](/infrastructure-manager/docs/preview-deployment).\n\nIf you want to delete a deployment, see\n[Delete a deployment](/infrastructure-manager/docs/delete-deployments).\n\nBefore you begin\n----------------\n\nEnsure that you have the IAM permissions needed to delete previews: `roles/config.admin`.\n\nDelete a preview\n----------------\n\nTo delete a preview: \n\n gcloud infra-manager previews delete projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/previews/\u003cvar translate=\"no\"\u003ePREVIEW_ID\u003c/var\u003e\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e is the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e is the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003ePREVIEW_ID\u003c/var\u003e is the preview identifier of the preview.\n\nWhat's next\n-----------\n\n- [Create a new preview](/infrastructure-manager/docs/preview-deployment).\n- [View and list previews](/infrastructure-manager/docs/list-preview).\n- Use Infra Manager to [deploy resources](/infrastructure-manager/docs/deploy-resources).\n- Learn more about [Terraform with Infra Manager](/infrastructure-manager/docs/terraform)."]]