Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I need to delete all droplets with the name xyz. However when I run:
doctl compute droplet delete xyz -f
However this only works if there is exactly one droplet with the name xyz.
If there are >1 droplets I get:
Error: There are 2 Droplets with the name "xyz"; please provide a specific Droplet ID. [1111111, 9999999]
If there are 0 droplets I get:
Error: Droplet with the name "xyz" could not be found.
The problem is that I don’t know how many droplets have the name xyz when my script is run.
I tried:
doctl compute droplet delete xyz -f --all
But the --all flag does not exist. What would you recommend if I want to delete all droplets (I want this to work if there are 0, 1, 2, … n droplets, not just if there is exactly one droplet)
9c1989c1c80144c7a9977905ce64c9
Scott H
1e6b823ea20d4cb189a34a922f5588
Rory McEwan
lan
kprichard
realmag777
Edward Narrdo
Vinoth K