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

****************
delete_slot_type
****************



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

  

  Deletes a slot type from a bot locale.

   

  If a slot is using the slot type, Amazon Lex throws a ``ResourceInUseException`` exception. To avoid the exception, set the ``skipResourceInUseCheck`` parameter to ``true``.

  

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


  **Request Syntax**
  ::

    response = client.delete_slot_type(
        slotTypeId='string',
        botId='string',
        botVersion='string',
        localeId='string',
        skipResourceInUseCheck=True|False
    )
    
  :type slotTypeId: string
  :param slotTypeId: **[REQUIRED]** 

    The identifier of the slot type to delete.

    

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

    The identifier of the bot associated with the slot type.

    

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

    The version of the bot associated with the slot type.

    

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

    The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see `Supported languages <https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html>`__.

    

  
  :type skipResourceInUseCheck: boolean
  :param skipResourceInUseCheck: 

    By default, the ``DeleteSlotType`` operations throws a ``ResourceInUseException`` exception if you try to delete a slot type used by a slot. Set the ``skipResourceInUseCheck`` parameter to ``true`` to skip this check and remove the slot type even if a slot uses it.

    

  
  
  :returns: None
  **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`

  