:doc:`S3 <../../s3>` / Client / delete_bucket_analytics_configuration

*************************************
delete_bucket_analytics_configuration
*************************************



.. py:method:: S3.Client.delete_bucket_analytics_configuration(**kwargs)

  

  .. note::

    

    This operation is not supported for directory buckets.

    

   

  Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).

   

  To use this operation, you must have permissions to perform the ``s3:PutAnalyticsConfiguration`` action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see `Permissions Related to Bucket Subresource Operations <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources>`__ and `Managing Access Permissions to Your Amazon S3 Resources <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html>`__.

   

  For information about the Amazon S3 analytics feature, see `Amazon S3 Analytics – Storage Class Analysis <https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html>`__.

   

  The following operations are related to ``DeleteBucketAnalyticsConfiguration``:

   

  
  * `GetBucketAnalyticsConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAnalyticsConfiguration.html>`__
   
  * `ListBucketAnalyticsConfigurations <https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html>`__
   
  * `PutBucketAnalyticsConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAnalyticsConfiguration.html>`__
  

   

  .. warning::

     

    You must URL encode any signed header values that contain spaces. For example, if your header value is ``my file.txt``, containing two spaces after ``my``, you must URL encode this value to ``my%20%20file.txt``.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfiguration>`_  


  **Request Syntax**
  ::

    response = client.delete_bucket_analytics_configuration(
        Bucket='string',
        Id='string',
        ExpectedBucketOwner='string'
    )
    
  :type Bucket: string
  :param Bucket: **[REQUIRED]** 

    The name of the bucket from which an analytics configuration is deleted.

    

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

    The ID that identifies the analytics configuration.

    

  
  :type ExpectedBucketOwner: string
  :param ExpectedBucketOwner: 

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code ``403 Forbidden`` (access denied).

    

  
  
  :returns: None