models/classes/ExtendedStateService.php
public function clearEvents($testSessionId)
    {
        $extendedState = $this->getExtendedState($testSessionId);
        $extendedState->clearEvents();
        $extendedState->save();
    }
public function clearEvents($testSessionId)
    {
        $extendedState = $this->getExtendedState($testSessionId);
        $extendedState->clearEvents();
        $extendedState->save();
    }
Removes all events from the queue
@param $testSessionId
@throws \common_Exception