• Object Storage Service

  1. Help Center
  2. Object Storage Service
  3. API Reference (Swift)
  4. Operations on Containers
  5. Batch Delete Containers
  6. Examples


Delete Empty Containers

Delete two empty containers: 8projectidprojectidproject000023.bucket.test6.0 and 8projectidprojectidproject000023.bucket.test6.1, and delete the container text file deletesample:


Execute the deletion:

curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" -XPOST -T ./deletesample
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