def get_next_del_state(self, state, ret):
        """Return the next delete state from previous state. """
        if ret:
            if state == fw_const.INIT_STATE:
                return state
            else:
                return state - 1
        else:
            return state
Return the next delete state from previous state.