1
0
forked from docs/doc-exports
doc-exports/docs/obs/api-swift/obs_03_0040.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

2.5 KiB

Examples

Delete Empty Container

Delete an empty steven container:

curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u/steven -X DELETE
HTTP/1.1 204 No Content
X-Trans-Id: tx3d3e55d11af10dd917cdd-b205cb56e6
Content-Length: 0
Content-Type: text/html;charset=UTF-8
Date: Sat, 19 Sep 2015 02:37:34 GMT

Delete Non-Existing Container

Delete the non-existing steve container:

curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u/steve -X DELETE
HTTP/1.1 404 Not Found
X-Trans-Id: txbfb5fe049899729a00e6d-e304231475
Content-Type: text/html;charset=UTF-8
Date: Sat, 19 Sep 2015 02:37:04 GMT
Content-Length: 70

<html><h1>Not Found</h1><p>The resource could not be found.</p></html> 

Delete Non-Empty Container

Delete the non-empty CONTAINER container:

curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u/CONTAINER -X DELETE
HTTP/1.1 409 Conflict
X-Trans-Id: tx920280c22ff4ec5f733a5-74a61c1cb9
Content-Type: text/html;charset=UTF-8
Date: Sat, 19 Sep 2015 02:33:28 GMT
Content-Length: 95

<html><h1>Conflict</h1><p>There was a conflict when trying to complete your request.</p></html>