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)
Delete an instance in its cell.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/rpcapi.py/CellsAPI.terminate_instance