DigitalOcean.dropletDelete()

Delete a specific Droplet

You can find documentation for this API here: https://developers.digitalocean.com/documentation/v2/ and raise issues here: Github.com/NileFrater/machinepack-digitalocean.

Usage

Hover over inputs/exits for more info.

var DigitalOcean = require('machinepack-digitalocean');


// Delete a specific Droplet

DigitalOcean.dropletDelete({

token: 'FFDFdf8f8d',

dropletID: '7564837494',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Could not find specified ID

notFound: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

token required

Your DigitalOcean API token.

'FFDFdf8f8d'
dropletID required

Droplet ID - The droplet specified will be deleted.

'7564837494'

Exits

error

An unexpected error occurred.

notFound

Could not find specified ID

success

OK.