:doc:`ConnectCases <../../connectcases>` / Client / delete_template

***************
delete_template
***************



.. py:method:: ConnectCases.Client.delete_template(**kwargs)

  

  Deletes a cases template. You can delete up to 100 templates per domain.

   

  After a cases template is deleted:

   

  
  * You can still retrieve the template by calling ``GetTemplate``.
   
  * You cannot update the template.
   
  * You cannot create a case by using the deleted template.
   
  * Deleted templates are not included in the ``ListTemplates`` response.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteTemplate>`_  


  **Request Syntax**
  ::

    response = client.delete_template(
        domainId='string',
        templateId='string'
    )
    
  :type domainId: string
  :param domainId: **[REQUIRED]** 

    The unique identifier of the Cases domain.

    

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

    A unique identifier of a template.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ConnectCases.Client.exceptions.InternalServerException`

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

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

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

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

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

  