class Mailgun::Client

def delete(resource_path, params = nil)

Returns:
  • (Mailgun::Response) - A Mailgun::Response object.

Parameters:
  • resource_path (String) -- This is the API resource you wish to interact
def delete(resource_path, params = nil)
  if params
    response = @http_client.delete(resource_path, params: params)
  else
    response = @http_client.delete(resource_path)
  end
  Response.new(response)
rescue => err
  raise communication_error err
end