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

def delete_record(self, record):

    action = '/Record.Remove'
    data = {'domain_id': record.zone.id, 'record_id': record.id}
    try:
        self._make_request(action=action, method='POST', data=data)
    except DNSPodException:
        e = sys.exc_info()[1]
        if (e.message in RECORD_DOES_NOT_EXIST_ERRORS_MSGS):
            raise RecordDoesNotExistError(record_id=record.id, driver=self, value='')
        elif (e.message in ZONE_DOES_NOT_EXIST_ERROR_MSGS):
            raise ZoneDoesNotExistError(zone_id=record.zone.id, driver=self, value='')
        else:
            raise e
    return True
