code: public function removeEvents($ids = [])
      {
          $removed = false;
          if (isset($this->state[self::VAR_EVENTS_QUEUE])) {
              foreach ($ids as $id) {
                  if (isset($this->state[self::VAR_EVENTS_QUEUE][$id])) {
                      unset($this->state[self::VAR_EVENTS_QUEUE][$id]);
                      $removed = true;
                  }
              }
          }
          return $removed;
      }
docs: Removes particular events from the queue
  @param array $ids
  @return bool