/**
* Deletes given session.
*
* @param string $sessionId
*
* @return Values\DeletedUserSession|\Symfony\Component\HttpFoundation\Response
*
* @throws \eZ\Publish\Core\Base\Exceptions\UnauthorizedException If the CSRF token is missing or invalid.
* @throws RestNotFoundException
*
* @deprecated Deprecated since 6.5. Use SessionController::refreshSessionAction().
*/
public function deleteSession($sessionId, Request $request)
{
@trigger_error(E_USER_DEPRECATED, 'The session actions from the User controller are deprecated since 6.5. Use the SessionController instead.');
return $this->sessionController->deleteSessionAction($sessionId, $request);
}