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

************
delete_theme
************



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

  

  Deletes a theme.

  

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


  **Request Syntax**
  ::

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

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

    

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

    An ID for the theme that you want to delete.

    

  
  :type VersionNumber: integer
  :param VersionNumber: 

    The version of the theme that you want to delete.

     

    **Note:** If you don't provide a version number, you're using this call to ``DeleteTheme`` to delete all versions of the theme.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The Amazon Resource Name (ARN) of the resource.

        
      

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

        The Amazon Web Services request ID for this operation.

        
      

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

        The HTTP status of the request.

        
      

      - **ThemeId** *(string) --* 

        An ID for the theme.

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

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

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

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

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

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

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

  