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>
72 lines
4.5 KiB
HTML
72 lines
4.5 KiB
HTML
<a name="obs_04_0036"></a><a name="obs_04_0036"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Lifecycle Rules</h1>
|
|
<div id="body64162387"><div class="section" id="obs_04_0036__section5584184924715"><h4 class="sectiontitle">Functions</h4><p class="msonormal" id="obs_04_0036__p34512320">This operation deletes the lifecycle configuration of a bucket. After the lifecycle configuration of a bucket is deleted, OBS will not automatically delete objects in that bucket.</p>
|
|
<p class="msonormal" id="obs_04_0036__p42175431">To perform this operation, you must have the <strong id="obs_04_0036__b47667158410">PutLifecycleConfiguration</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_0036__section44034561"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0036__screen29770839"><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 /?lifecycle 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_0036__section60766737"><h4 class="sectiontitle">Request Parameters</h4><p class="msonormal" id="obs_04_0036__p45648629">This request contains no parameter.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0036__section10029727"><h4 class="sectiontitle">Request Headers</h4><p class="msonormal" id="obs_04_0036__p6551431">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_0036__section23158684"><h4 class="sectiontitle">Request Elements</h4><p class="msonormal" id="obs_04_0036__p11264357">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0036__section7101569"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0036__screen39997734"><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: text/xml
|
|
Date: date
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0036__section63914128"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0036__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_0036__section38356240"><h4 class="sectiontitle">Response Elements</h4><p class="msonormal" id="obs_04_0036__p59393822">This response involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0036__section9661843"><h4 class="sectiontitle">Error Responses</h4><p class="msonormal" id="obs_04_0036__p46170314">No special error responses are involved. 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_0036__section14482163815396"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0036__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 /?lifecycle HTTP/1.1
|
|
User-Agent: curl/7.29.0
|
|
Host: examplebucket.obs.region.example.com
|
|
Accept: */*
|
|
Date: WED, 01 Jul 2015 03:12:22 GMT
|
|
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:5DGAS7SBbMC1YTC4tNXY57Zl2Fo=
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0036__section76081155815"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0036__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: BF260000016436C2550A1EEA97614A98
|
|
x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSB7A0KZEBOCutgcfZvaGVthTGOJSuyk
|
|
Date: WED, 01 Jul 2015 03:12:22 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>
|
|
|