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