S3 / Client / delete_bucket_tagging

delete_bucket_tagging#

S3.Client.delete_bucket_tagging(**kwargs)#

Note

This operation is not supported by directory buckets.

Deletes the tags from the bucket.

To use this operation, you must have permission to perform the s3:PutBucketTagging action. By default, the bucket owner has this permission and can grant this permission to others.

The following operations are related to DeleteBucketTagging:

See also: AWS API Documentation

Request Syntax

response = client.delete_bucket_tagging(
    Bucket='string',
    ExpectedBucketOwner='string'
)
Parameters:
  • Bucket (string) –

    [REQUIRED]

    The bucket that has the tag set to be removed.

  • ExpectedBucketOwner (string) – Ignored by COS if present.

Returns:

None

Examples

The following example deletes bucket tags.

response = client.delete_bucket_tagging(
    Bucket='examplebucket',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}