:doc:`AmplifyBackend <../../amplifybackend>` / Client / delete_token

************
delete_token
************



.. py:method:: AmplifyBackend.Client.delete_token(**kwargs)

  

  Deletes the challenge token based on the given appId and sessionId.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteToken>`_  


  **Request Syntax**
  ::

    response = client.delete_token(
        AppId='string',
        SessionId='string'
    )
    
  :type AppId: string
  :param AppId: **[REQUIRED]** 

    The app ID.

    

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

    The session ID.

    

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

    
    ::

      {
          'IsSuccess': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 

      200 response

      
      

      - **IsSuccess** *(boolean) --* 

        Indicates whether the request succeeded or failed.

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

  
  *   :py:class:`AmplifyBackend.Client.exceptions.GatewayTimeoutException`

  
  *   :py:class:`AmplifyBackend.Client.exceptions.TooManyRequestsException`

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

  