S3.Client.
delete_bucket_tagging
(**kwargs)¶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'
)
[REQUIRED]
The bucket that has the tag set to be removed.
403 Forbidden
(access denied).None
Examples
The following example deletes bucket tags.
response = client.delete_bucket_tagging(
Bucket='examplebucket',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}