When you no longer need a deployment that you created by using Workload Manager,
you can delete it to free up resources, stop incurring costs, or remove a test
environment. When you delete a deployment, Workload Manager: Guided Deployment Automation deletes
only the resources that were created as part of that deployment. It doesn't
delete shared resources or resources that existed before the deployment, such as
Secrets and Virtual Private Cloud (VPC) networks.

To delete a deployment, do the following.

> [!CAUTION]
> **Caution:** Deleting a resource is a permanent action, and the resource or data residing on it might not be recoverable. If you haven't done so already, consider backing up the system.

1. In the Google Cloud console, go to the Workload Manager
   **Deployments** page.

   [Go to Deployments](https://console.cloud.google.com/workload-manager/deployments)
2. Select the deployment that you want to delete. You see the deployment details
   page.

3. In the **Deployment Output** tab, review all the resources that were deployed
   as part of the deployment.

4. If you want to continue with deletion, click **Delete** at the top of the
   deployment details page and then confirm the deletion.

After you delete the deployment, you can manually delete the following
remaining resources from the Cloud Storage bucket:

- The Cloud Build history and logs
- The Terraform and state file used by the original deployment
- The [SAP installation media](https://docs.cloud.google.com/workload-manager/docs/deploy/sap/sap-install-files#upload-install-files) used in the deployment