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

def delete_record(self, record):

    zone_id = record.zone.id
    record_id = record.id
    try:
        self.connection.request(('/zones/%s/records/%s' % (zone_id, record_id)), method='DELETE')
    except MalformedResponseError:
        e = sys.exc_info()[1]
        if (e.body == 'Not    found'):
            raise RecordDoesNotExistError(value="Record    doesn't    exists", driver=self, record_id=record_id)
        raise e
    return True
