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

**********************************
delete_message_template_attachment
**********************************



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

  

  Deletes the attachment file from the Amazon Q in Connect message template that is referenced by ``$LATEST`` qualifier. Attachments on available message template versions will remain unchanged.

  

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


  **Request Syntax**
  ::

    response = client.delete_message_template_attachment(
        knowledgeBaseId='string',
        messageTemplateId='string',
        attachmentId='string'
    )
    
  :type knowledgeBaseId: string
  :param knowledgeBaseId: **[REQUIRED]** 

    The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

    

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

    The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

    

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

    The identifier of the attachment file.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

  