:doc:`LexModelsV2 <../../lexv2-models>` / Client / delete_bot_alias

****************
delete_bot_alias
****************



.. py:method:: LexModelsV2.Client.delete_bot_alias(**kwargs)

  

  Deletes the specified bot alias.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotAlias>`_  


  **Request Syntax**
  ::

    response = client.delete_bot_alias(
        botAliasId='string',
        botId='string',
        skipResourceInUseCheck=True|False
    )
    
  :type botAliasId: string
  :param botAliasId: **[REQUIRED]** 

    The unique identifier of the bot alias to delete.

    

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

    The unique identifier of the bot associated with the alias to delete.

    

  
  :type skipResourceInUseCheck: boolean
  :param skipResourceInUseCheck: 

    By default, Amazon Lex checks if any other resource, such as a bot network, is using the bot alias before it is deleted and throws a ``ResourceInUseException`` exception if the alias is being used by another resource. Set this parameter to ``true`` to skip this check and remove the alias even if it is being used by another resource.

    

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

    
    ::

      {
          'botAliasId': 'string',
          'botId': 'string',
          'botAliasStatus': 'Creating'|'Available'|'Deleting'|'Failed'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **botAliasId** *(string) --* 

        The unique identifier of the bot alias to delete.

        
      

      - **botId** *(string) --* 

        The unique identifier of the bot that contains the alias to delete.

        
      

      - **botAliasStatus** *(string) --* 

        The current status of the alias. The status is ``Deleting`` while the alias is in the process of being deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the ``ListBotAliases`` operation.

        
  
  **Exceptions**
  
  *   :py:class:`LexModelsV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ValidationException`

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

  
  *   :py:class:`LexModelsV2.Client.exceptions.PreconditionFailedException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.InternalServerException`

  