forked from docs/doc-exports
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>
360 lines
26 KiB
HTML
360 lines
26 KiB
HTML
<a name="EN-US_TOPIC_0125560366"></a><a name="EN-US_TOPIC_0125560366"></a>
|
|
|
|
<h1 class="topictitle1">DELETE Multiple Objects</h1>
|
|
<div id="body925206"><p class="msonormal" id="EN-US_TOPIC_0125560366__p86601169616">You can use this operation to delete multiple objects from a bucket in batches.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560366__p23626599">Deleted objects cannot be restored or accessed using <strong id="EN-US_TOPIC_0125560366__b7832832">LIST</strong> or <strong id="EN-US_TOPIC_0125560366__b3386626">GET</strong>. The OBS deletes multiple objects simultaneously and returns the deletion result of each object.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560366__p187438273616">The <strong id="EN-US_TOPIC_0125560366__b774262717619">DELETE Multiple Objects</strong> operation supports two modes for response: verbose and quiet.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560366__p14202133813612">In verbose mode, the returned response includes the deletion result of each requested object in an XML file.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560366__p11312807">In quiet mode, the returned response includes only results of objects failed to be deleted. The OBS uses verbose mode by default and you can specify quiet mode in the request body.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560366__p34706401">A <strong id="EN-US_TOPIC_0125560366__b5881294">DELETE Multiple Objects</strong> request must contain headers <strong id="EN-US_TOPIC_0125560366__b52931650">Content-MD5</strong> and <strong id="EN-US_TOPIC_0125560366__b6622802">Content-Length</strong> to detect network errors.</p>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section7589824"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen66733475113125">POST /?delete HTTP/1.1
|
|
User-Agent: agent
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: date
|
|
Authorization: Signature
|
|
Content-MD5: MD5
|
|
Content-Length: length
|
|
Expect: expect
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Delete>
|
|
<Quiet>true</Quiet>
|
|
<Object>
|
|
<Key>Key1</Key>
|
|
</Object>
|
|
<Object>
|
|
<Key>Key2</Key>
|
|
</Object>
|
|
</Delete> </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section1199559"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560366__p13821155">This request involves no parameters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section10796036"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560366__p45771770">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_0125560366__section30055464"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560366__p63528009">This request uses elements to specify the list of objects to be deleted in batches. <a href="#EN-US_TOPIC_0125560366__table42836777">Table 1</a> describes the elements.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0125560366__table42836777"></a><a name="table42836777"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0125560366__table42836777" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request elements</caption><thead align="left"><tr id="EN-US_TOPIC_0125560366__row59230144"><th align="left" class="cellrowborder" valign="top" width="24.392439243924393%" id="mcps1.3.10.3.2.4.1.1"><p id="EN-US_TOPIC_0125560366__p32912398">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.98479847984798%" id="mcps1.3.10.3.2.4.1.2"><p id="EN-US_TOPIC_0125560366__p48658592">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.622762276227625%" id="mcps1.3.10.3.2.4.1.3"><p id="EN-US_TOPIC_0125560366__p49031903">Remarks</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0125560366__row38633946"><td class="cellrowborder" valign="top" width="24.392439243924393%" headers="mcps1.3.10.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p42341959">Quiet</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.98479847984798%" headers="mcps1.3.10.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p1085814181877">Indicates the element to enable quite mode for the request. If the element is specified, OBS returns only the list of objects that failed to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p7146644">This element is only valid when its value is <strong id="EN-US_TOPIC_0125560366__b64319798">true</strong>. Otherwise, OBS ignores it.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p42007273">Type: Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.622762276227625%" headers="mcps1.3.10.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p47145967">Optional</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row21660524"><td class="cellrowborder" valign="top" width="24.392439243924393%" headers="mcps1.3.10.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p9671997">Delete</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.98479847984798%" headers="mcps1.3.10.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p45234324">Indicates the list of objects to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p4455732">Type: XML</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.622762276227625%" headers="mcps1.3.10.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p25369996">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row27003373"><td class="cellrowborder" valign="top" width="24.392439243924393%" headers="mcps1.3.10.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p39789633">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.98479847984798%" headers="mcps1.3.10.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p1734841">Indicates an object to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p15613574">Type: XML</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.622762276227625%" headers="mcps1.3.10.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p56740016">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row40898103"><td class="cellrowborder" valign="top" width="24.392439243924393%" headers="mcps1.3.10.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p24412045">Key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.98479847984798%" headers="mcps1.3.10.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p31218599">Indicates the key of an object to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p12531937">Type: String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.622762276227625%" headers="mcps1.3.10.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p8453981">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row8976969"><td class="cellrowborder" valign="top" width="24.392439243924393%" headers="mcps1.3.10.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p56045856">VersionId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.98479847984798%" headers="mcps1.3.10.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p43420508">Indicates the version ID of an object to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p55240260">Type: String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.622762276227625%" headers="mcps1.3.10.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p45276050">Optional</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="notice" id="EN-US_TOPIC_0125560366__note43481400"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p class="ext" id="EN-US_TOPIC_0125560366__p55788284">Request constraints:</p>
|
|
<p class="ext" id="EN-US_TOPIC_0125560366__p32332511">This request can delete a maximum of 1000 objects at a time. If you send the request to delete more than 1000 objects, OBS returns an error response.</p>
|
|
<p class="ext" id="EN-US_TOPIC_0125560366__p22557146">After receiving the request, OBS deletes objects simultaneously in a circular manner. During this process, OBS may encounter an internal error. For example, data inconsistency may occur because the metadata of an object still exists after the object's index data is deleted.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section65367744"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen35814013113158">HTTP/1.1 status_code
|
|
x-amz-id-2: id
|
|
x-amz-request-id: request id
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Date: date
|
|
Content-Type: type
|
|
Content-Length: length
|
|
Server: server
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<DeleteResult xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<Deleted>
|
|
<Key>Key1</Key>
|
|
</Deleted>
|
|
<Error>
|
|
<Key>Key2</Key>
|
|
<Code>InternalError</Code>
|
|
<Message>Internal Error</Message>
|
|
</Error>
|
|
</DeleteResult></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section51438785"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560366__p58374663">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_0125560366__section60295883"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560366__p5883463">This response contains elements to return results of object deletion. <a href="#EN-US_TOPIC_0125560366__table56991560">Table 2</a> describes the elements.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0125560366__table56991560"></a><a name="table56991560"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0125560366__table56991560" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response elements</caption><thead align="left"><tr id="EN-US_TOPIC_0125560366__row39761544"><th align="left" class="cellrowborder" valign="top" width="24.292429242924293%" id="mcps1.3.13.3.2.4.1.1"><p id="EN-US_TOPIC_0125560366__p66568510">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.89478947894789%" id="mcps1.3.13.3.2.4.1.2"><p id="EN-US_TOPIC_0125560366__p23340236">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.81278127812781%" id="mcps1.3.13.3.2.4.1.3"><p id="EN-US_TOPIC_0125560366__p11511003">Remarks</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0125560366__row36490171"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p2913837">DeleteResult</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p34694260">Indicates the container for the response.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p43812891">Type: Container</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p59183292">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row62887584"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p60729557">Deleted</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p20147070">Indicates the container element for a successful deletion.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p47105906">Type: Container</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p57482021">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row47576142"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p28462276">Error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p23743056">Indicates the container for a failed deletion.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p12360912">Type: Container</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p61709845">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row18517699"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p23538684">Key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p27585257">Indicates the key of a deleted object.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p46940727">Type: String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p44102542">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row61378561"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p5607548">Code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p51558219">Indicates the status code for a failed deletion.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p61370790">Type: String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p4978063">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row44802567"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p5129283">Message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p12818804">Indicates the error details about a failed deletion.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p48260380">Type: String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p16776727">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row16772820"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p16421203">VersionId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p55049062">Indicates the version ID of an object to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p25679515">Type: String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p66774824">Optional</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row64102506"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p24920491">DeleteMarker</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p5293856">If this element is specified, <strong id="EN-US_TOPIC_0125560366__b47644705">true</strong> will be returned when you create or delete a deletion mark in the requested bucket with versioning enabled.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p26149169">Type: Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p37707976">Optional</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560366__row3827464"><td class="cellrowborder" valign="top" width="24.292429242924293%" headers="mcps1.3.13.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560366__p41589152">DeleteMarkerVersionId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.89478947894789%" headers="mcps1.3.13.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560366__p13278128">Indicates the version ID of the deletion marker deleted or created by the request.</p>
|
|
<p id="EN-US_TOPIC_0125560366__p52394293">If the <strong id="EN-US_TOPIC_0125560366__b8122131314152">DELETE multiple objects</strong> request either creates or deletes a deletion marker, OBS returns this element in response with the version ID of the deletion marker. This element will be returned in either of the following cases:</p>
|
|
<ul id="EN-US_TOPIC_0125560366__ul16079341"><li id="EN-US_TOPIC_0125560366__li10496346">You send a non-version <strong id="EN-US_TOPIC_0125560366__b27358258">DELETE multiple object</strong> request, that is, you specify only object key but not the version ID. In this case, OBS creates a deletion marker and returns its version ID in the response.</li><li id="EN-US_TOPIC_0125560366__li44897732">You send a version <strong id="EN-US_TOPIC_0125560366__b1426411">DELETE multiple objects</strong> request, that is, you specify an object key and a version ID that identifies a deletion marker. In this case, OBS deletes a deletion marker and returns its version ID in the response.</li></ul>
|
|
<p id="EN-US_TOPIC_0125560366__p12837703">Type: Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.81278127812781%" headers="mcps1.3.13.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560366__p33221002">Optional</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section5792039"><h4 class="sectiontitle">Error Responses</h4><ol id="EN-US_TOPIC_0125560366__ol58919521"><li id="EN-US_TOPIC_0125560366__li60513649">If more than 1000 objects are requested, OBS returns status code <strong id="EN-US_TOPIC_0125560366__b7751933">400 Bad Request</strong>.</li><li id="EN-US_TOPIC_0125560366__li2658533">If an object key is invalid (for example, the object key contains 1024 characters), OBS returns status code <strong id="EN-US_TOPIC_0125560366__b23926804">400 Bad Request</strong>.</li><li id="EN-US_TOPIC_0125560366__li14014650">If the <strong id="EN-US_TOPIC_0125560366__b59022992">Content-MD5</strong> header does not exist, OBS returns status code <strong id="EN-US_TOPIC_0125560366__b61444888">400 Bad Request</strong>.</li><li id="EN-US_TOPIC_0125560366__li16133081">If bucket metadata does not exist, OBS returns status code <strong id="EN-US_TOPIC_0125560366__b10980006">404 Not Found</strong> and error code <strong id="EN-US_TOPIC_0125560366__b31711190">NoSuchBucket</strong>.</li><li id="EN-US_TOPIC_0125560366__li16965260">If the requester does not have <strong id="EN-US_TOPIC_0125560366__b162420182159">WRITE</strong> permission for the requested bucket, OBS returns status code <strong id="EN-US_TOPIC_0125560366__b08731025191515">403 Forbidden</strong> and prompt message <strong id="EN-US_TOPIC_0125560366__b19643918">AccessDenied</strong>.</li></ol>
|
|
<p id="EN-US_TOPIC_0125560366__p42577538">For details about other 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_0125560366__section46319263"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen13303072113224">POST /?delete HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: Tue, 14 Jan 2014 12:10:09 +0000
|
|
Authorization: AWS BF6C09F302931425E9A7:wQ1Tp3rD7kaUCsYfPKxOIN7NoSA=
|
|
Content-MD5: 367CB63A2F283044981285491015079
|
|
Content-Length: 135
|
|
Expect: 100-continue
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Delete>
|
|
<Quiet>true</Quiet>
|
|
<Object>
|
|
<Key>Key1</Key>
|
|
</Object>
|
|
<Object>
|
|
<Key>Key2</Key>
|
|
</Object>
|
|
</Delete> </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section14220187"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen20221631113243">HTTP/1.1 200 OK
|
|
x-amz-id-2: Weag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg==
|
|
x-amz-request-id: 996c76696e6727732072657175657374
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Date: Mon, 1 Nov 2010 20:34:56 GMT
|
|
Content-Type: application/xml
|
|
Content-Length: 10485760
|
|
Server: OBS
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<DeleteResult xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<Deleted>
|
|
<Key>Key1</Key>
|
|
</Deleted>
|
|
<Error>
|
|
<Key>Key2</Key>
|
|
<Code>InternalError</Code>
|
|
<Message>Internal Error</Message>
|
|
</Error>
|
|
</DeleteResult></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section10984535"><h4 class="sectiontitle">Sample Request (Deleting an Object with No Version ID Specified form a Bucket with Versioning Enabled)</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen39507315113257">POST /?delete HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: Tue, 14 Jan 2014 12:10:09 +0000
|
|
Authorization: AWS C9590CEB8EC051BDEC9D:HLq5AmI/Zlz1PPsXdk6pIHuNaCM=
|
|
Content-MD5: uj2BQLIgDcegTcWHwEGoiA==
|
|
Content-Length: 64
|
|
Expect: 100-continue
|
|
|
|
<Delete>
|
|
<Object>
|
|
<Key>object</Key>
|
|
</Object>
|
|
</Delete> </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section31751951"><h4 class="sectiontitle">Sample Response (Deleting an Object with No Version ID Specified form a Bucket with Versioning Enabled)</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen33010544113313">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: DCD2FC9CAB780000014390A8AA7D4763
|
|
x-amz-id-2: iFIiPx4egtz5ToRcIIkVZ5Nz8F+zUCis6JKhuQysA4gxLIt+EgPMTMuO08beG7sd
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Content-Type: application/xml
|
|
Date: Tue, 14 Jan 2014 12:10:09 GMT
|
|
Content-Length: 280
|
|
|
|
<DeleteResult xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<Deleted>
|
|
<Key>object</Key>
|
|
<DeleteMarker>true</DeleteMarker>
|
|
<DeleteMarkerVersionId>AAABQ5Coqqzc0vycq3gAAAAZVURTRkha</DeleteMarkerVersionId>
|
|
</Deleted>
|
|
</DeleteResult></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section21771268"><h4 class="sectiontitle">Sample Request (Deleting an Object with Version ID Specified from a Bucket)</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen16110055113321">POST /example?delete HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: Tue, 14 Jan 2014 12:19:57 +0000
|
|
Authorization: AWS C9590CEB8EC051BDEC9D:eTmW0xEkSYrfqOSjZUV7zS+Ap5Y=
|
|
Content-MD5: YDYt+eVo7S5tnBHaHOylGA==
|
|
Content-Length: 124
|
|
Expect: 100-continue
|
|
|
|
<Delete>
|
|
<Object>
|
|
<Key>object</Key>
|
|
<VersionId>AAABQ4-glIvc0vycq3gAAAAVVURTRkha</VersionId>
|
|
</Object>
|
|
</Delete> </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section61723690"><h4 class="sectiontitle">Sample Response (Deleting an Object with Version ID Specified from a Bucket)</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen46341215113332">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: DCD2FC9CAB780000014390B1A5974C2C
|
|
x-amz-id-2: x9Vt2FIjXLjyu38NHeHG+IIYQIQKQjZrEDSHOElJMvEb/SUfY5k54C/uX8GfGUFz
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Content-Type: application/xml
|
|
Date: Tue, 14 Jan 2014 12:19:58 GMT
|
|
Content-Length: 223
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<DeleteResult xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<Deleted>
|
|
<Key>object</Key>
|
|
<VersionId>AAABQ4-glIvc0vycq3gAAAAVVURTRkha</VersionId>
|
|
</Deleted>
|
|
</DeleteResult></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section33563027"><h4 class="sectiontitle">Sample Request (Deleting a Deletion Mark in a Bucket with Version ID Specified)</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen56458451113340">POST /example?delete HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: Wed, 15 Jan 2014 02:03:40 +0000
|
|
Authorization: AWS C9590CEB8EC051BDEC9D:N/UdjEab/8H5Llgw1HUpTd21wc4=
|
|
Content-MD5: n9LlSFB87vGiGDqDKLXPLA==
|
|
Content-Length: 124
|
|
Expect: 100-continue
|
|
|
|
<Delete>
|
|
<Object>
|
|
<Key>object</Key>
|
|
<VersionId>AAABQ49lNT_c0vycq3gAAAAOVURTRkha</VersionId>
|
|
</Object>
|
|
</Delete></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560366__section33631792"><h4 class="sectiontitle">Sample Response (Deleting a Deletion Mark in a Bucket with Version ID Specified)</h4><pre class="screen" id="EN-US_TOPIC_0125560366__screen19562726113358">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: DCD2FC9CAB780000014393A3C5CEDE66
|
|
x-amz-id-2: N9UP5OvD4BwlQAfyqow6TLWq7HIsG8As4bP/CCNFjcp1Ab8Cc4JAFPm0bjV9WrTg
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
Content-Type: application/xml
|
|
Date: Wed, 15 Jan 2014 02:03:40 GMT
|
|
Content-Length: 335
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<DeleteResult xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<Deleted>
|
|
<Key>object</Key>
|
|
<VersionId>AAABQ49lNT_c0vycq3gAAAAOVURTRkha</VersionId>
|
|
<DeleteMarker>true</DeleteMarker>
|
|
<DeleteMarkerVersionId>AAABQ49lNT_c0vycq3gAAAAOVURTRkha</DeleteMarkerVersionId>
|
|
</Deleted>
|
|
</DeleteResult></pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560489.html">Operations on Objects</a></div>
|
|
</div>
|
|
</div>
|
|
|