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

************************
delete_slot_type_version
************************



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

  

  Deletes a specific version of a slot type. To delete all versions of a slot type, use the  DeleteSlotType operation.

   

  This operation requires permissions for the ``lex:DeleteSlotTypeVersion`` action.

  

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


  **Request Syntax**
  ::

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

    The name of the slot type.

    

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

    The version of the slot type to delete. You cannot delete the ``$LATEST`` version of the slot type. To delete the ``$LATEST`` version, use the  DeleteSlotType operation.

    

  
  
  :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`

  