Example: Deleting a bucket

Here’s a sample DELETE request that deletes the bucket named sales-mktg.

Request with s3curl command line

./s3curl.pl --id=lgreen --delete -- -k "https://sales-mktg.europe.hcp.example.com"

Request headers

DELETE / HTTP/1.1
Host: sales-mktg.europe.hcp.example.com
Date: Fri, 07 February 2020 17:19:26 +0000
Authorization: AWS bGdyZWVu:2nVpI9dSOakB9JZtEyx81RCZTKw=

Response headers

HTTP/1.1 204 No Content
Date: Fri, 07 February 2020 17:19:26 GMT

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.