PROJECT_ID correspond à l'ID du projet dans lequel Infrastructure Manager s'exécute.
LOCATION correspond à l'emplacement où Infra Manager s'exécute. Pour obtenir la liste des emplacements valides, consultez la section Emplacements Infrastructure Manager.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (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)."]]