Here’s a sample DELETE request that deletes an object named hum_res/budget_proposals/BudgProp-2020 from the finance bucket.
The example shows the response headers HCP returns while versioning is enabled for the bucket and 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/
BudgProp-2020"
Request headers
Request headers
DELETE /hum_res/budget_proposals/BudgProp-2020 HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 07 February 2020 17:19:26 +0000
Authorization: AWS bGdyZWVu:i9bRonH4gi1SrymsF0Fw84mWUeQ=
Response headers with versioning enabled
HTTP/1.1 204 No Content
Date: Fri, 07 February 2020 17:19:26 GMT
x-amz-version-id: 87288781940929
x-amz-delete-marker: true
Response headers with versioning disabled
HTTP/1.1 204 No Content
Date: Fri, 07 February 2020 17:19:26 GMT
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.