:doc:`CloudFront <../../cloudfront>` / Client / delete_distribution_tenant

**************************
delete_distribution_tenant
**************************



.. py:method:: CloudFront.Client.delete_distribution_tenant(**kwargs)

  

  Deletes a distribution tenant. If you use this API operation to delete a distribution tenant that is currently enabled, the request will fail.

   

  To delete a distribution tenant, you must first disable the distribution tenant by using the ``UpdateDistributionTenant`` API operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistributionTenant>`_  


  **Request Syntax**
  ::

    response = client.delete_distribution_tenant(
        Id='string',
        IfMatch='string'
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The ID of the distribution tenant to delete.

    

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

    The value of the ``ETag`` header that you received when retrieving the distribution tenant. This value is returned in the response of the ``GetDistributionTenant`` API operation.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CloudFront.Client.exceptions.PreconditionFailed`

  
  *   :py:class:`CloudFront.Client.exceptions.AccessDenied`

  
  *   :py:class:`CloudFront.Client.exceptions.EntityNotFound`

  
  *   :py:class:`CloudFront.Client.exceptions.ResourceNotDisabled`

  
  *   :py:class:`CloudFront.Client.exceptions.InvalidIfMatchVersion`

  