Deleting Tags of a Bucket
API Description
You can use this API to delete tags of a specified bucket.
Method Definition
ObsClient.deleteBucketTagging(bucketName)
Request Parameters
| Field | Type | Optional or Mandatory | Description |
|---|---|---|---|
| bucketName | String | Mandatory | Bucket name |
Returned Results
| Type | Description |
|---|---|
| SDK common result object |
Sample Code
try:
resp = obsClient.deleteBucketTagging('bucketname')
if resp.status < 300:
print('requestId:', resp.requestId)
else:
print('errorCode:', resp.errorCode)
print('errorMessage:', resp.errorMessage)
except:
import traceback
print(traceback.format_exc()) Last Article: Obtaining the Tag Settings of a Bucket
Next Article: Objects-Related APIs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.