DELETE Bucket Policy

This operation uses the policy subresource to delete the policy of a specified bucket.

Only the bucket owner or users granted the s3:DeleteBucketPolicy permission can delete the bucket policy.

OBS returns 204 No Content no matter whether a requested bucket policy exists or not.

Request Syntax

DELETE /?policy HTTP/1.1
Host: bucketname.obs.cn-north-1.myhwclouds.com
Date: date
Authorization: authorization

Request Parameters

This request contains no parameter.

Request Headers

This request uses common headers. For details, see Common Request Headers.

Request Elements

This request contains no element.

Response Syntax

HTTP/1.1 status_code
Date: date
Content-Type: text/xml
Content-Length: length

Response Headers

This response uses common headers. For details, see Common Response Headers.

Response Elements

This response contains no element.

Error Responses

No special error responses are returned. For details about error responses, see Table 1.

Registration