doc-exports/docs/obs/api-swift/obs_03_0050.html
zhangyue 894279c39a Object Storage Service API Reference Swift V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 08:50:48 +00:00

101 lines
6.7 KiB
HTML

<a name="obs_03_0050"></a><a name="obs_03_0050"></a>
<h1 class="topictitle1">Request</h1>
<div id="body1509692736661"><div class="section" id="obs_03_0050__section318016296718"><h4 class="sectiontitle">Method</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0050__table20186229072" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_03_0050__row152544293714"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.2.1.4.1.1"><p id="obs_03_0050__p13255192919710">Method</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.2.1.4.1.2"><p id="obs_03_0050__p5255122910718"><strong id="obs_03_0050__b11255729078">URI</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.2.1.4.1.3"><p id="obs_03_0050__p1425512299717">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_03_0050__row72556295713"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.2.1.4.1.1 "><p id="obs_03_0050__p1625519291715">POST</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.2.1.4.1.2 "><p id="obs_03_0050__p92551291579">/v1/{account}?bulk-delete</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.2.1.4.1.3 "><p id="obs_03_0050__p177641292166">Batch deletes containers. A maximum of 10,000 empty containers can be deleted.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="obs_03_0050__p1925522919718"><strong id="obs_03_0050__b45927968">{account}</strong> indicates the name of an account.</p>
<p id="obs_03_0050__p122553291277">The request body is a text file that includes the containers to be deleted. Each line in the text file represents a container to be deleted.</p>
</div>
<div class="section" id="obs_03_0050__section1079761591017"><h4 class="sectiontitle">Example Request</h4><p id="obs_03_0050__p1991091516103">Batch delete containers:</p>
<pre class="screen" id="obs_03_0050__screen391011154109">curl -i $publicURL?bulk-delete -XPOST -H "X-Auth-Token:$token" -T ./deletesample</pre>
</div>
<div class="section" id="obs_03_0050__section138011151105"><h4 class="sectiontitle">Request Query Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0050__table080121521013" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_03_0050__row1991151581020"><th align="left" class="cellrowborder" valign="top" width="20.407959204079592%" id="mcps1.3.3.2.1.4.1.1"><p id="obs_03_0050__p14911201520106">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.3.2.1.4.1.2"><p id="obs_03_0050__p59110153109">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="65.3034696530347%" id="mcps1.3.3.2.1.4.1.3"><p id="obs_03_0050__p1291118158108">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_03_0050__row991141551017"><td class="cellrowborder" valign="top" width="20.407959204079592%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_03_0050__p1591118157106">bulk-delete</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_03_0050__p1391191551012">String</p>
<p id="obs_03_0050__p1991161514104">(Required)</p>
</td>
<td class="cellrowborder" valign="top" width="65.3034696530347%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_03_0050__p18911141517103">Bulk-deletes containers. It is used together with the text file that includes the containers to be deleted.</p>
<p id="obs_03_0050__p139111815181015">A maximum of 10,000 empty containers can be deleted at once.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="obs_03_0050__section11811171501013"><h4 class="sectiontitle">Request Headers</h4><p id="obs_03_0050__p1291331531016">Request URI parameters</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0050__table118171015141015" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_03_0050__row1691415154104"><th align="left" class="cellrowborder" valign="top" width="20.407959204079592%" id="mcps1.3.4.3.1.4.1.1"><p id="obs_03_0050__p791417154108">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.4.3.1.4.1.2"><p id="obs_03_0050__p1191471571012">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="65.3034696530347%" id="mcps1.3.4.3.1.4.1.3"><p id="obs_03_0050__p14914915161017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_03_0050__row09141915171019"><td class="cellrowborder" valign="top" width="20.407959204079592%" headers="mcps1.3.4.3.1.4.1.1 "><p id="obs_03_0050__p791441520103">{account}</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.4.3.1.4.1.2 "><p id="obs_03_0050__p291491515105">String</p>
<p id="obs_03_0050__p209149154102">(Required)</p>
</td>
<td class="cellrowborder" valign="top" width="65.3034696530347%" headers="mcps1.3.4.3.1.4.1.3 "><p id="obs_03_0050__p1391481581010">A unique account name. In the current version, it indicates a unique ID for the account.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="obs_03_0050__p691221513105">Request header parameters</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0050__table781141518105" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_03_0050__row79131015151012"><th align="left" class="cellrowborder" valign="top" width="20.407959204079592%" id="mcps1.3.4.5.1.4.1.1"><p id="obs_03_0050__p1591311517104">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885711%" id="mcps1.3.4.5.1.4.1.2"><p id="obs_03_0050__p11913171517106">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="65.3034696530347%" id="mcps1.3.4.5.1.4.1.3"><p id="obs_03_0050__p149131515141015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_03_0050__row17913121518102"><td class="cellrowborder" valign="top" width="20.407959204079592%" headers="mcps1.3.4.5.1.4.1.1 "><p id="obs_03_0050__p1191341571017">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885711%" headers="mcps1.3.4.5.1.4.1.2 "><p id="obs_03_0050__p491391521014">String</p>
<p id="obs_03_0050__p11913101541017">(Required)</p>
</td>
<td class="cellrowborder" valign="top" width="65.3034696530347%" headers="mcps1.3.4.5.1.4.1.3 "><p id="obs_03_0050__p49131715161017">Authentication token.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0049.html">Batch Delete Containers</a></div>
</div>
</div>