doc-exports/docs/obs/s3api/en-us_topic_0125560295.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

53 lines
4.0 KiB
HTML

<a name="EN-US_TOPIC_0125560295"></a><a name="EN-US_TOPIC_0125560295"></a>
<h1 class="topictitle1">DELETE Bucket website</h1>
<div id="body55594619"><p class="msonormal" id="EN-US_TOPIC_0125560295__p2095077">You can use this operation to delete the website configuration of a bucket.</p>
<p class="msonormal" id="EN-US_TOPIC_0125560295__p18855696">Only users granted the <strong id="EN-US_TOPIC_0125560295__b1812592711611">s3:DeleteBucketWebsite</strong> permission can delete the bucket website configuration. By default, only the bucket owner can delete the bucket website configuration. The bucket owner can allow other users to delete the bucket website configuration by granting them the permission.</p>
<div class="section" id="EN-US_TOPIC_0125560295__section27556393"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560295__screen6538403612922"> DELETE /?website HTTP/1.1
User-Agent: agent
Host: bucketname.obs.example.com
Accept: */*
Date: date
Authorization: authorization</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560295__section46680953"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560295__p49509242">This request involves no parameters.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560295__section17475399"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560295__p50825680">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_0125560295__section23060868"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560295__p3345069">This request involves no elements.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560295__section46957633"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560295__screen4667246112935">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 </pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560295__section19965518"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560295__p62595191">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_0125560295__section45471939"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560295__p47915191">This response involves no elements.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560295__section6594274"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560295__p55925239">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_0125560295__section11442060"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560295__screen193515012949">DELETE /?website HTTP/1.1
User-Agent: curl/7.29.0
Host: bucketname.obs.example.com
Accept: */*
Date: Sat, 04 Jan 2014 06:55:26 +0000
Authorization: AWS C6630CD15B645CB8A3BA:iWz49B3sO2HTFlcsKdEsSULl5GI=</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560295__section35869679"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560295__screen1681098612957">HTTP/1.1 204 No Content
Server: OBS
x-amz-request-id: DCD2FC9CAB78000001435C08F1018EDD
x-amz-id-2: QeEqZzxKPinUt9LmE9sFGcR+5xCpm2HoqFCqFFuFAB9Y84NcX6/MjhZqpN0+cE2P
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
Date: Sat, 04 Jan 2014 06:55:26 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>