Forrest logo
back to the doctl tool

doctl-compute-droplet:tldr:860a8

doctl-compute-droplet: Delete a droplet.
$ doctl compute droplet delete ${select}
try on your machine

The command doctl compute droplet delete ${select} is used to delete a specific DigitalOcean Droplet using the DigitalOcean Command Line Interface (CLI) tool called doctl.

Here is a breakdown of what each component of the command does:

  • doctl: It is the command used to interact with the DigitalOcean API through the command line. It needs to be installed and configured with your DigitalOcean account before using it.

  • compute: It is a sub-command of doctl that deals with resources related to DigitalOcean's compute infrastructure, such as Droplets (virtual machines) and Load Balancers.

  • droplet delete: This is the specific command within doctl compute that is used to delete a Droplet. Droplets are virtual machines hosted by DigitalOcean.

  • ${select}: This is a placeholder for a specific Droplet's ID or name that you want to delete. You need to replace ${select} with the actual ID or name of the Droplet you want to delete.

When you execute this command, doctl will make an API call to DigitalOcean, specifying that you want to delete the Droplet with the provided ID or name. The Droplet will be permanently removed from your DigitalOcean account, and any data stored on it will also be deleted.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the doctl tool