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

def delete_record(self, record):

    zone = record.zone
    for index in range(MAX_RECORD_ENTRIES):
        if (record.name == zone.extra[('S%s' % (index + 1))]):
            entry = (index + 1)
            break
    extra = {('S%s' % entry): '', ('T%s' % entry): 'NONE', ('D%s' % entry): ''}
    self.update_zone(zone, zone.domain, extra=extra)
    return True
