'Terminate an instance.'

@check_instance_lock
@check_instance_cell
@check_instance_state(vm_state=None, task_state=None, must_have_launched=True)
def soft_delete(self, context, instance):

    LOG.debug('Going    to    try    to    soft    delete    instance', instance=instance)
    self._delete(context, instance, 'soft_delete', self._do_soft_delete, task_state=task_states.SOFT_DELETING, deleted_at=timeutils.utcnow())
