Method: Dnsimple::Client::Webhooks#delete_webhook

Defined in:
lib/dnsimple/client/webhooks.rb

#delete_webhook(account_id, webhook_id, options = {}) ⇒ Dnsimple::Response<nil>

Deletes a webook from the account.

WARNING: this cannot be undone.

Parameters:

  • account_id (Integer)

    the account ID

  • webhook_id (#to_s)

    The webhook ID

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:



81
82
83
84
85
# File 'lib/dnsimple/client/webhooks.rb', line 81

def delete_webhook(, webhook_id, options = {})
  response = client.delete(Client.versioned("/%s/webhooks/%s" % [, webhook_id]), nil, options)

  Dnsimple::Response.new(response, nil)
end