'>>> driver = DummyDNSDriver(\'key\', \'secret\')
>>> zone = driver.create_zone(domain=\'apache.org\', type=\'master\',
...                           ttl=100)
>>> record = driver.create_record(name=\'libcloud\', zone=zone,
...                               type=RecordType.A, data=\'127.0.0.1\')
>>> driver.delete_record(record)
True
>>> driver.delete_record(record) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
RecordDoesNotExistError:
@inherits: :class:`DNSDriver.delete_record`'

def delete_record(self, record):

    self.get_record(zone_id=record.zone.id, record_id=record.id)
    del self._zones[record.zone.id]['records'][record.id]
    return True
