:doc:`QConnect <../../qconnect>` / Client / delete_ai_prompt_version

************************
delete_ai_prompt_version
************************



.. py:method:: QConnect.Client.delete_ai_prompt_version(**kwargs)

  

  Delete and Amazon Q in Connect AI Prompt version.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/DeleteAIPromptVersion>`_  


  **Request Syntax**
  ::

    response = client.delete_ai_prompt_version(
        assistantId='string',
        aiPromptId='string',
        versionNumber=123
    )
    
  :type assistantId: string
  :param assistantId: **[REQUIRED]** 

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    

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

    The identifier of the Amazon Q in Connect AI prompt.

    

  
  :type versionNumber: integer
  :param versionNumber: **[REQUIRED]** 

    The version number of the AI Prompt version to be deleted.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`QConnect.Client.exceptions.ValidationException`

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

  
  *   :py:class:`QConnect.Client.exceptions.UnauthorizedException`

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

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

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

  