Cloudflare.deleteDnsRecord()

Delete a record for a domain

Usage

Hover over inputs/exits for more info.

var Cloudflare = require('machinepack-cloudflare');


// Delete a record for a domain

Cloudflare.deleteDnsRecord({

token: '8afbe6dea02407989af4dd4c97bb6e25',

email: 'sample@example.com',

domain: 'example.com',

recordId: '9001',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Authentication could not be completed.

notAuthorized: function () {

 

},

// Some other input was not valid.

invalidInput: function () {

 

},

// You have exceeded your allowed number of API calls.

apiLimit: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

token required

The API key made available on your Cloudflare account page.

'8afbe6dea02407989af4dd4c97bb6e25'
email required

The e-mail address associated with your Cloudflare account.

'sample@example.com'
domain required

The target domain.

'example.com'
recordId required

The DNS record ID.

'9001'

Exits

error

An unexpected error occurred.

notAuthorized

Authentication could not be completed.

invalidInput

Some other input was not valid.

apiLimit

You have exceeded your allowed number of API calls.

success

OK.