Destroy the Deployment
When you are ready to clean up, you can destroy the application in Waypoint and then uninstall the Waypoint components.
Remove your application from the cluster by running the
waypoint destroy command. Respond
yes when prompted to confirm the operation. This will destroy any active deployments and releases.
$ waypoint destroy Do you really want to destroy all resources for this app? Only 'yes' will be accepted to approve: yes
Waypoint will start the process and output the following.
» Performing operation locally » Destroying releases for application 'example-nodejs'... ✓ Running release destroy v2 ✓ Running release destroy v1 » Destroying deployments for application 'example-nodejs'... ✓ Running deployment destroy v2 ✓ Deleting container: af1753fbcb68a7cfa9d61a14bc4427b32ae13a3ba7b7040d648898e9a8300f9e ✓ Running deployment destroy v1 ✓ Deleting container: 141b40f5fb82d5b92e12a660680e37fee38b300650a492fbf53ca88ab6df67b0 Destroy successful!
There are no components to uninstall if you use HCP Waypoint.
Deactivating HCP Waypoint is an optional step that disables Waypoint for your HCP project. This will not delete any runners or images that have been pushed to a registry.
Click the Manage button on the top right of the page, and then click on the Deactivate Waypoint option.
A dialog appears confirming that you want to deactivate Waypoint. Type
DEACTIVATE in the field and click on the Deactivate button.
Another dialog appears to confirm that Waypoint has been deactivated.
You can re-enable Waypoint by clicking on the Activate Waypoint button in the top right of the page.
If you were following the Nomad get started tutorial, you can now stop or destroy your cluster.
Stop the Nomad cluster process in your terminal with
In this tutorial you learned how to destroy your application in Waypoint and uninstall Waypoint from your infrastructure.
In this collection of tutorials you learned about the Waypoint workflow, installed Waypoint, initialized an application, built, deployed, released, and updated the application, destroyed the application, and uninstalled Waypoint.
Continue your learning with the tutorials and documentation below.