:doc:`QuickSight <../../quicksight>` / Client / delete_template

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



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

  

  Deletes a template.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplate>`_  


  **Request Syntax**
  ::

    response = client.delete_template(
        AwsAccountId='string',
        TemplateId='string',
        VersionNumber=123
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the template that you're deleting.

    

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

    An ID for the template you want to delete.

    

  
  :type VersionNumber: integer
  :param VersionNumber: 

    Specifies the version of the template that you want to delete. If you don't provide a version number, ``DeleteTemplate`` deletes all versions of the template.

    

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

    
    ::

      {
          'RequestId': 'string',
          'Arn': 'string',
          'TemplateId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the resource.

        
      

      - **TemplateId** *(string) --* 

        An ID for the template.

        
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

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

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

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

  
  *   :py:class:`QuickSight.Client.exceptions.LimitExceededException`

  
  *   :py:class:`QuickSight.Client.exceptions.UnsupportedUserEditionException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

  