Here’s a sample DELETE request that deletes a folder named hum_res/budget_proposals from the finance bucket. The request is being made while versioning is disabled for the bucket.
Request with s3curl command line
./s3curl.pl --id=lgreen --delete -- -k
"https://finance.europe.hcp.example.com/hum_res/budget_proposals/"
Request headers
DELETE /hum_res/budget_proposals/ HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 12 Apr 2013 18:28:52 +0000
Authorization: AWS bGdyZWVu:6iZRgTyBmsiLxX37WDtIS8X7vT8=
Response headers
HTTP/1.1 204 No Content
Date: Fri, 12 Apr 2013 18:28:51 GMT
Server: HCP V7.0.0.16
© 2016 Hitachi Data Systems Corporation. All rights reserved.