public ServiceCall < Void > deleteSession ( DeleteSessionOptions deleteSessionOptions ) { Validator . notNull ( deleteSessionOptions , "deleteSessionOptions cannot be null" ) ; String [ ] pathSegments = { "v2/assistants" , "sessions" } ; String [ ] pathParameters = { deleteSessionOptions . assistantId ( ) , deleteSessionOptions . sessionId ( ) } ; RequestBuilder builder = RequestBuilder . delete ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "conversation" , "v2" , "deleteSession" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getVoid ( ) ) ; }
Delete session .