Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid 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.