doc-exports/docs/obs/api-ref/obs_04_0073.html
Jawei, Li f1cb839979 OBS api-ref 2.0.38.SP5
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-03 11:54:51 +00:00

72 lines
4.4 KiB
HTML

<a name="obs_04_0073"></a><a name="obs_04_0073"></a>
<h1 class="topictitle1">Deleting the Static Website Hosting Configuration of a Bucket</h1>
<div id="body53241280"><div class="section" id="obs_04_0073__section5584184924715"><h4 class="sectiontitle">Functions</h4><p class="msonormal" id="obs_04_0073__p35139511">You can perform this operation to delete the website configuration of a bucket.</p>
<p class="msonormal" id="obs_04_0073__p47820146">To perform this operation, you must have the <strong id="obs_04_0073__b1739171232">DeleteBucketWebsite</strong> permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.</p>
</div>
<div class="section" id="obs_04_0073__section27728131"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0073__screen17576447"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4</pre></div></td><td class="code"><div class="highlight"><pre><span></span>DELETE /?website HTTP/1.1
Host: bucketname.obs.region.example.com
Date: date
Authorization: authorization
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0073__section48226587"><h4 class="sectiontitle">Request Parameters</h4><p class="msonormal" id="obs_04_0073__p10912087">This request contains no parameter.</p>
</div>
<div class="section" id="obs_04_0073__section31386099"><h4 class="sectiontitle">Request Headers</h4><p class="msonormal" id="obs_04_0073__p11463820">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
</div>
<div class="section" id="obs_04_0073__section14039436"><h4 class="sectiontitle">Request Elements</h4><p class="msonormal" id="obs_04_0073__p35625804">This request involves no elements.</p>
</div>
<div class="section" id="obs_04_0073__section59246063"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0073__screen9044"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 status_code
Date: date
Content-Type: type
Content-Length: length
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0073__section63452526"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0073__p1512332591013">The response to the request uses common headers. For details, see <a href="obs_04_0013.html#obs_04_0013__d0e686">Table 1</a>.</p>
</div>
<div class="section" id="obs_04_0073__section34201824"><h4 class="sectiontitle">Response Elements</h4><p class="msonormal" id="obs_04_0073__p20251155">This response involves no elements.</p>
</div>
<div class="section" id="obs_04_0073__section39380968"><h4 class="sectiontitle">Error Responses</h4><p class="msonormal" id="obs_04_0073__p29730838">No special error responses are returned. For details about error responses, see <a href="obs_04_0115.html#obs_04_0115__d0e843">Table 2</a>.</p>
</div>
<div class="section" id="obs_04_0073__section14482163815396"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0073__screen8484163863919"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span>DELETE /?website HTTP/1.1
User-Agent: curl/7.29.0
Host: bucketname.obs.region.example.com
Accept: */*
Date: WED, 01 Jul 2015 03:44:37 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:AZ1b0N5eLknxNOe/c0BISV1bEqc=
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0073__section76081155815"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0073__screen8485113814"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 204 No Content
Server: OBS
x-obs-request-id: BF2600000164363786230E2001DC0807
x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSFUG4fEyDRgzUiEY2i71bJndBCy+wUZ
Date: WED, 01 Jul 2015 03:44:37 GMT
</pre></div>
</td></tr></table></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0070.html">Static Website Hosting</a></div>
</div>
</div>