doc-exports/docs/obs/s3api/en-us_topic_0125560427.html
Jawei, Li 1a4c1a720a OBS s3api 2.0.38.SP5
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-16 14:51:13 +00:00

54 lines
3.9 KiB
HTML

<a name="EN-US_TOPIC_0125560427"></a><a name="EN-US_TOPIC_0125560427"></a>
<h1 class="topictitle1">DELETE Bucket policy</h1>
<div id="body18445270"><p class="msonormal" id="EN-US_TOPIC_0125560427__p17568244">You can use this operation to delete the policy of a specified bucket.</p>
<p class="msonormal" id="EN-US_TOPIC_0125560427__p23896471">Only the bucket owner can delete the bucket policy.</p>
<p class="msonormal" id="EN-US_TOPIC_0125560427__p13741654">OBS returns <strong id="EN-US_TOPIC_0125560427__b24829487">204 No Content</strong> whether a requested bucket policy exists or not.</p>
<div class="section" id="EN-US_TOPIC_0125560427__section50184984"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560427__screen2403712312154">DELETE /?policy HTTP/1.1
Host: bucketname.obs.example.com
Accept: */*
Date: date
Authorization: authorization</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section49011679"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560427__p3088388">This request involves no parameters.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section38451933"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560427__p48832851">This request uses common headers. For details about common request headers, see section <a href="en-us_topic_0125560462.html">Common Request Headers</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section10523083"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560427__p14620943">This request involves no elements.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section31093287"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560427__screen4242160612210">HTTP/1.1 status_code
Server: Server Name
x-amz-request-id: request id
x-amz-id-2: id
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
Date: date
Content-Type: type</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section11404133"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560427__p20226985">This response uses common headers. For details about common response headers, see section <a href="en-us_topic_0125560484.html">Common Response Headers</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section35528341"><h4 class="sectiontitle">Response elements</h4><p id="EN-US_TOPIC_0125560427__p35025494">This response involves no elements.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section51319614"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560427__p18492804">No special error responses are returned. For details about error responses, see <a href="en-us_topic_0125560440.html#EN-US_TOPIC_0125560440__table30733758">Table 1</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section6925935"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560427__screen1575702912226">DELETE /?policy HTTP/1.1
Host: bucketname.obs.example.com
Accept: */*
Date: Fri, 06 Sep 2013 07:06:42 GMT
Authorization: signature</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560427__section62333418"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560427__screen2063006812233">HTTP/1.1 204 No Content
Server: OBS
x-amz-request-id: 7B6DFC9BC71DD58B061285551605709
x-amz-id-2: N0I2REZDOUJDNzFERDU4QjA2MTI4NTU1MTYwNTcwOUFBQUFBQUFBYmJiYmJiYmJD
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
Content-Type: text/xml
Date: Mon, 27 Sep 2010 01:40:03 GMT </pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560493.html">Operations on Buckets</a></div>
</div>
</div>