:doc:`LexRuntimeService <../../lex-runtime>` / Client / delete_session

**************
delete_session
**************



.. py:method:: LexRuntimeService.Client.delete_session(**kwargs)

  

  Removes session information for a specified bot, alias, and user ID.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/DeleteSession>`_  


  **Request Syntax**
  ::

    response = client.delete_session(
        botName='string',
        botAlias='string',
        userId='string'
    )
    
  :type botName: string
  :param botName: **[REQUIRED]** 

    The name of the bot that contains the session data.

    

  
  :type botAlias: string
  :param botAlias: **[REQUIRED]** 

    The alias in use for the bot that contains the session data.

    

  
  :type userId: string
  :param userId: **[REQUIRED]** 

    The identifier of the user associated with the session data.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'botName': 'string',
          'botAlias': 'string',
          'userId': 'string',
          'sessionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **botName** *(string) --* 

        The name of the bot associated with the session data.

        
      

      - **botAlias** *(string) --* 

        The alias in use for the bot associated with the session data.

        
      

      - **userId** *(string) --* 

        The ID of the client application user.

        
      

      - **sessionId** *(string) --* 

        The unique identifier for the session.

        
  
  **Exceptions**
  
  *   :py:class:`LexRuntimeService.Client.exceptions.NotFoundException`

  
  *   :py:class:`LexRuntimeService.Client.exceptions.BadRequestException`

  
  *   :py:class:`LexRuntimeService.Client.exceptions.LimitExceededException`

  
  *   :py:class:`LexRuntimeService.Client.exceptions.InternalFailureException`

  
  *   :py:class:`LexRuntimeService.Client.exceptions.ConflictException`

  