Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Deleting Bucket Policies on a Bucket

To delete a policy associated with a bucket, use the DELETE Bucket operation with the policy sub-resource. The following request deletes the bucket policy associated with mybucket:

DELETE /?policy HTTP/1.1
Host: mybucket.s3.amazonaws.com  
Date: Tue, 04 Apr 2010 20:34:56 GMT  
Authorization: AWS AKIAIOSFODNN7EXAMPLE:VGhpcyBSAMPLEeSBlbHZpbmc= 

To use the delete operation, you must have DeletePolicy permissions on the specified bucket and be the bucket owner. The bucket owner by default has permissions to delete bucket policies.

For more information, go to DELETE Bucket policy in the Amazon S3 API Reference.