'Delete an instance in its cell.
This method takes a new-world instance object.'

def terminate_instance(self, ctxt, instance, bdms, reservations=None, delete_type='delete'):

    msg_kwargs = {'instance': instance}
    if self.client.can_send_version('1.36'):
        version = '1.36'
        msg_kwargs['delete_type'] = delete_type
    else:
        version = '1.18'
    cctxt = self.client.prepare(version=version)
    cctxt.cast(ctxt, 'terminate_instance', **msg_kwargs)
