doc-exports/docs/obs/api-swift/obs_03_0052.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

30 lines
1.5 KiB
HTML

<a name="obs_03_0052"></a><a name="obs_03_0052"></a>
<h1 class="topictitle1">Examples</h1>
<div id="body1509692736661"><div class="section" id="obs_03_0052__section2201390"><h4 class="sectiontitle">Delete Empty Containers</h4><p id="obs_03_0052__p12448242296">Delete two empty containers: <strong id="obs_03_0052__b842352706175420">8projectidprojectidproject000023.bucket.test6.0</strong> and <strong id="obs_03_0052__b842352706175426">8projectidprojectidproject000023.bucket.test6.1</strong>, and delete the container text file <strong id="obs_03_0052__b842352706175448">deletesample</strong>:</p>
<pre class="screen" id="obs_03_0052__screen116442024112912">/8projectidprojectidproject000023.bucket.test6.0
/8projectidprojectidproject000023.bucket.test6.1</pre>
<p id="obs_03_0052__p411651911102">Execute the deletion:</p>
</div>
<pre class="codeblock" id="obs_03_0052__codeblock35900084104526">curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u?bulk-delete -XPOST -T ./deletesample</pre>
<pre class="screen" id="obs_03_0052__screen4496161">HTTP/1.1 100 Continue
HTTP/1.1 200 OK
X-Trans-Id: tx0000015f80c43411770b1-a2dbb9e7c9
Date: Fri, 03 Nov 2017 07:24:22 GMT
Content-Type: text/plain;charset=ISO-8859-1
Transfer-Encoding: chunked
Number Deleted: 2
Number Not Found: 0
Response Body:
Response Status: 200 OK
Errors:</pre>
</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>