Jump to Content

Class DeleteBucketTaggingCommandProtected

Deletes the tags from the bucket.

To use this operation, you must have permission to perform the s3:PutBucketTagging action. By default, the bucket owner has this permission and can grant this permission to others.

The following operations are related to DeleteBucketTagging:

Example

Use a bare-bones client and the command you need to make an API call.

import { S3Client, DeleteBucketTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, DeleteBucketTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const input = {
Bucket: "STRING_VALUE", // required
ExpectedBucketOwner: "STRING_VALUE",
};
const command = new DeleteBucketTaggingCommand(input);
const response = await client.send(command);

Param

DeleteBucketTaggingCommandInput

Returns

DeleteBucketTaggingCommandOutput

See

Example

To delete bucket tags

// The following example deletes bucket tags.
const input = {
"Bucket": "examplebucket"
};
const command = new DeleteBucketTaggingCommand(input);
await client.send(command);
// example id: to-delete-bucket-tags-1483043846509

Hierarchy

Constructors

Properties

Methods