'Delete a record.
:param record: Record to delete.
:type  record: :class:`Record`
:rtype: ``bool``'

def delete_record(self, record):

    action = '/v1/dns/delete_record'
    params = {'api_key': self.key}
    data = urlencode({'RECORDID': record.id, 'domain': record.zone.domain})
    zone_records = self.list_records(record.zone)
    if (not self.ex_record_exists(record.id, zone_records)):
        raise RecordDoesNotExistError(value='', driver=self, record_id=record.id)
    response = self.connection.request(action=action, params=params, data=data, method='POST')
    return (response.status == 200)
