forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
74 lines
4.4 KiB
HTML
74 lines
4.4 KiB
HTML
<a name="obs_04_0051"></a><a name="obs_04_0051"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Tags</h1>
|
|
<div id="body1522727142744"><div class="section" id="obs_04_0051__section5584184924715"><h4 class="sectiontitle">Functions</h4><p id="obs_04_0051__p38705345481">This operation deletes the tags of a bucket.</p>
|
|
<p id="obs_04_0051__p8870123474818">To perform this operation, you must have the <strong id="obs_04_0051__b1369575492116">PutBucketTagging</strong> permission. By default, only the bucket owner can delete the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section45065450485"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0051__screen3610323119435"><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 /?tagging HTTP/1.1
|
|
Host: bucketname.obs.region.example.com
|
|
Date: date
|
|
Authorization: authorization string
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section1296694711492"><h4 class="sectiontitle">Request Parameters</h4><p id="obs_04_0051__p593111435014">This request contains no parameter.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section2781110155011"><h4 class="sectiontitle">Request Headers</h4><p id="obs_04_0051__p114042151502">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_0051__section126870405505"><h4 class="sectiontitle">Request Elements</h4><p id="obs_04_0051__p168011556165016">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section910630175111"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0051__screen1535102455116"><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 status_code
|
|
x-obs-request-id: request id
|
|
x-obs-id-2: id
|
|
Content-Length: length
|
|
Date: date
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section0233121717529"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0051__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_0051__section151181751135216"><h4 class="sectiontitle">Response Elements</h4><p id="obs_04_0051__p5814125795219">This response involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section1211411715310"><h4 class="sectiontitle">Error Responses</h4><p id="obs_04_0051__p9928192695312">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_0051__section9741154135612"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0051__screen207308135711"><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 /?tagging HTTP/1.1
|
|
User-Agent: curl/7.19.7
|
|
Host: examplebucket.obs.region.example.com
|
|
Accept: */*
|
|
Date: Wed, 27 Jun 2018 13:46:58 GMT
|
|
Authorization: authorization string
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0051__section18791259195717"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0051__screen491841285816"><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
|
|
x-obs-request-id: 0002B7532E0000015BEB2C212E53A17L
|
|
x-obs-id-2: CqT+86nnOkB+Cv9KZoVgZ28pSgMF+uGQBUC68flvkQeq6CxoCz65wWFMNBpXvea4
|
|
Content-Length: 0
|
|
Date: Wed, 27 Jun 2018 13:46:58 GMT
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0026.html">Advanced Bucket Settings</a></div>
|
|
</div>
|
|
</div>
|
|
|