DeleteBucketPolicy method
Written by
Updated at September 30, 2024
Removes the access policy from the specified bucket.
For more information on getting started with the API and the general request format, see How to use the S3 API.
Request
DELETE /{bucket}?policy HTTP/2
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
Query parameters
Parameter | Description |
---|---|
policy |
Required parameter that indicates the type of operation. |
Headers
Use the appropriate common headers in your request.
Response
If the request is successful, the service will return a response with HTTP 204
code and an empty body.
Response codes
For a list of possible responses, see Responses.