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

def delete_record(self, record):

    data = {'deletions': [{'name': record.name, 'type': record.type, 'rrdatas': record.data['rrdatas'], 'ttl': record.data['ttl']}]}
    request = ('/managedZones/%s/changes' % record.zone.id)
    response = self.connection.request(request, method='POST', data=data)
    return response.success()
