The following code examples show how to use DeleteBucketMetricsConfiguration
.
- AWS CLI
-
To delete a metrics configuration for a bucket
The following
delete-bucket-metrics-configuration
example removes the metrics configuration for the specified bucket and ID.aws s3api delete-bucket-metrics-configuration \ --bucket
amzn-s3-demo-bucket
\ --id123
This command produces no output.
-
For API details, see DeleteBucketMetricsConfiguration
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Developing with Amazon S3 using the AWS SDKs. This topic also includes information about getting started and details about previous SDK versions.