A small utility to help manage the destruction of DigitalOcean droplets.
Got a little crazy with just how easy creating Droplets on DigitalOcean is? Added too many 0s to Terraform’s count parameter? Don’t worry, Sinkship can help.
Get the tool:
go get github.com/ciarand/sinkship
Create a personal access token (PAT) from your DigitalOcean control panel.
Note
|
Sinkship will read token information from the following locations, in order:
|
Run the tool:
$ sinkship
INFO[0000] Found 20 droplets, preparing to delete
INFO[0001] [1] deleted coreos-minion (2788310)
INFO[0001] [2] deleted coreos-minion (2788316)
INFO[0002] [3] deleted coreos-minion (2788322)
INFO[0002] [4] deleted coreos-minion (2788314)
INFO[0002] [5] deleted coreos-minion (2788309)
INFO[0002] [6] deleted coreos-minion (2788320)
INFO[0002] [7] deleted coreos-minion (2788317)
INFO[0002] [8] deleted coreos-minion (2788318)
INFO[0002] [9] deleted coreos-minion (2788321)
INFO[0002] [10] deleted coreos-leader (2788326)
INFO[0002] [11] deleted coreos-minion (2788323)
INFO[0002] [12] deleted coreos-minion (2788315)
INFO[0002] [13] deleted coreos-minion (2788325)
INFO[0002] [14] deleted coreos-minion (2788307)
INFO[0002] [15] deleted coreos-minion (2788311)
INFO[0002] [16] deleted coreos-minion (2788312)
INFO[0002] [17] deleted coreos-minion (2788324)
INFO[0002] [18] deleted coreos-minion (2788313)
INFO[0002] [19] deleted coreos-minion (2788319)
INFO[0002] [20] deleted coreos-minion (2788308)