'Use this method to delete a record.
:param record: record to delete
:type record: `Record`
:rtype: ``bool``'

def delete_record(self, record):

    action = ('%s/servers/%s/zones/%s' % (self.api_root, self.ex_server, record.zone.id))
    payload = {'rrsets': [{'name': record.name, 'type': record.type, 'changetype': 'DELETE'}]}
    try:
        self.connection.request(action=action, data=json.dumps(payload), method='PATCH')
    except BaseHTTPError:
        return False
    return True
