Deleting Bucket Tags
API Description
You can use this API to delete the tags of a specified bucket.
Method Definition
func (obsClient ObsClient) DeleteBucketTagging(bucketName string) (output *BaseModel, err error)
Method Definition If a Signed URL Is Used
func (obsClient ObsClient) DeleteBucketTaggingWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
Request Parameter
| Field | Type | Optional or Mandatory | Description |
|---|---|---|---|
| bucketName | string | Mandatory | Bucket name |
Returned Result
| Field | Type |
|---|---|
| output | |
| err | error |
Sample Code
func main() { output, err := obsClient.DeleteBucketTagging("bucketname") if err == nil { fmt.Printf("RequestId:%s\n", output.RequestId) } else { if obsError, ok := err.(obs.ObsError); ok { fmt.Println(obsError.Code) fmt.Println(obsError.Message) } else { fmt.Println(err) } } }
Last Article: Obtaining Bucket Tags
Next Article: Configuring Bucket Encryption
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.