code: public function removeEvents($testSessionId, $ids = [])
      {
          $extendedState = $this->getExtendedState($testSessionId);
          $extendedState->removeEvents($ids);
          $extendedState->save();
      }
docs: Removes particular events from the queue
  @param $testSessionId
  @param array $ids
  @throws \common_Exception