DeleteBucketOwnershipControls - Amazon Simple Storage Service

DeleteBucketOwnershipControls

Removes OwnershipControls for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketOwnershipControls permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

For information about Amazon S3 Object Ownership, see Using Object Ownership.

The following operations are related to DeleteBucketOwnershipControls:

Request Syntax

DELETE /?ownershipControls HTTP/1.1 Host: Bucket.s3.amazonaws.com x-amz-expected-bucket-owner: ExpectedBucketOwner

URI Request Parameters

The request uses the following URI parameters.

Bucket

The Amazon S3 bucket whose OwnershipControls you want to delete.

Required: Yes

x-amz-expected-bucket-owner

The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 204

Response Elements

If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.

Examples

Sample DeleteBucketOwnershipControls Request

DELETE /example-bucket?/ownershipControls HTTP/1.1 Host: examplebucket.s3.<Region>.amazonaws.com Date: Thu, 18 Jun 2017 00:17:22 GMT Authorization: signatureValue;

Sample DeleteBucketOwnershipControls Response

HTTP/1.1 204 No Content x-amz-id-2: dVrxJD3XHDcjZHFtd7eSB+ovpY8hQ6kSe9jPzyRVkWp27cij05qV1pTIvz/hjlsrupiy9gEkSdw= x-amz-request-id: 4BFC0B777B448C97 Date: Thu, 18 Jun 2020 22:54:03 GMT Server: AmazonS3

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: