Mandrill.deleteAllTemplates()

Delete all mandrill templates from an account.

Usage

Hover over inputs/exits for more info.

var Mandrill = require('machinepack-mandrill');


// Delete all mandrill templates from an account.

Mandrill.deleteAllTemplates({

apiKey: 'tzTDP_JZlGoqFw3Rvy1bpw',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

apiKey required

A valid Mandrill API key.

'tzTDP_JZlGoqFw3Rvy1bpw'

Exits

error

An unexpected error occurred.

{ status: 'error',
  name: 'Mandrill API Error',
  code: 'E_MANDRILL_API' }
success

OK.

{ message: '' }