:doc:`Connect <../../connect>` / Client / delete_vocabulary

*****************
delete_vocabulary
*****************



.. py:method:: Connect.Client.delete_vocabulary(**kwargs)

  

  Deletes the vocabulary that has the given identifier.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteVocabulary>`_  


  **Request Syntax**
  ::

    response = client.delete_vocabulary(
        InstanceId='string',
        VocabularyId='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The identifier of the custom vocabulary.

    

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

    
    ::

      {
          'VocabularyArn': 'string',
          'VocabularyId': 'string',
          'State': 'CREATION_IN_PROGRESS'|'ACTIVE'|'CREATION_FAILED'|'DELETE_IN_PROGRESS'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **VocabularyArn** *(string) --* 

        The Amazon Resource Name (ARN) of the custom vocabulary.

        
      

      - **VocabularyId** *(string) --* 

        The identifier of the custom vocabulary.

        
      

      - **State** *(string) --* 

        The current state of the custom vocabulary.

        
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Connect.Client.exceptions.AccessDeniedException`

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

  