easy-proxy icon indicating copy to clipboard operation
easy-proxy copied to clipboard

Proxy mass destroy

Open thihaaung2000 opened this issue 7 years ago • 2 comments

I think cancel button is broken. It doesn't mass destroy all instances or if it is for other purpose, I hope u can add mass destroy option

thihaaung2000 avatar Dec 28 '17 00:12 thihaaung2000

you can find a mass destroyer here: https://github.com/ryan9918/digital-ocean-destroyer

Eastkap avatar Dec 28 '17 10:12 Eastkap

Just started dabbling with this, and if im not mistaken there is a bug where it's actually making a call to create a droplet (dropletsCreate()) instead of destroying it dropletsDelete() in create.js. Try replacing with the following... (Haven't tested it yet) let me know how you make out.

EDIT: Confirming that this is a fix.

function destroyDroplet(id, api, cb) {
    api.dropletsDelete(id, function(err, resp, body) {
        if (err) {
            return cb(true, null);
        }
        return cb(null, true)
    });
}

skram avatar Dec 29 '17 04:12 skram