:doc:`LexModelBuildingService <../../lex-models>` / Client / delete_bot_alias

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



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

  

  Deletes an alias for the specified bot.

   

  You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is used in a channel association, the ``DeleteBot`` operation returns a ``ResourceInUseException`` exception that includes a reference to the channel association that refers to the bot. You can remove the reference to the alias by deleting the channel association. If you get the same exception again, delete the referring association until the ``DeleteBotAlias`` operation is successful.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotAlias>`_  


  **Request Syntax**
  ::

    response = client.delete_bot_alias(
        name='string',
        botName='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the alias to delete. The name is case sensitive.

    

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

    The name of the bot that the alias points to.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`LexModelBuildingService.Client.exceptions.NotFoundException`

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

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

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

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

  
  *   :py:class:`LexModelBuildingService.Client.exceptions.ResourceInUseException`

  