HCP System Management Help


Deleting an object example

Here’s a sample DELETE request that deletes an object named hum_res/budget_proposals/BudgProp-2013 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-2013"

Request headers

DELETE /hum_res/budget_proposals/BudgProp-2013 HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 12 Apr 2013 18:20:55 +0000
Authorization: AWS bGdyZWVu:i9bRonH4gi1SrymsF0Fw84mWUeQ=

Response headers with versioning enabled

HTTP/1.1 204 No Content
Date: Fri, 12 Apr 2013 18:20:54 GMT
Server: HCP V7.0.0.16
x-amz-version-id: 87288781940929
x-amz-delete-marker: true

Response headers with versioning disabled

HTTP/1.1 204 No Content
Date: Fri, 12 Apr 2013 18:20:54 GMT
Server: HCP V7.0.0.16

© 2017 Hitachi Vantara Corporation. All rights reserved.