aws s3api delete-bucket-metrics-configuration
Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the metrics configuration ID) from the bucket. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
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 --id 123Identify--bucketThe name of the bucket containing the metrics configuration to delete.--idThe ID used to identify the metrics configuration.This command produces no output.
For more information, see CloudWatch metrics configurations in the Amazon S3 User Guide.
Options
--bucketThe name of the bucket containing the metrics configuration to delete.--expected-bucket-ownerThe account ID of the expected bucket owner.--idThe ID used to identify the metrics configuration.