- Newest
- Most votes
- Most comments
As your bucket contains large number of objects 10M, creating a lifecycle rule to delete all objects in the bucket is definitely more efficient way of emptying your bucket. It is not instantaneous, will take a day or two depends what time of the day you create the LC rule. https://docs.aws.amazon.com/AmazonS3/latest/userguide/empty-bucket.html?icmpid=docs_amazons3_console#empty-bucket-lifecycle
Once the bucket is empty, you can delete the bucket by any mechanism.
Also pls note once deleted this bucket name would be available to use only in your account for 24 hrs, post that its globally available. For any reason if you want to keep hold of the bucket, you may update the bucket policy to deny any PUT. This way no new object will be created in this bucket and you will be able to keep the empty bucket for how long you want.
Deletes are free according to the documentation. I would empty the bucket using the GUI.
You can empty a bucket's contents using the Amazon S3 console, AWS SDKs, or AWS Command Line Interface (AWS CLI). When you empty a bucket, you delete all the objects, but you keep the bucket. After you empty a bucket, it cannot be undone. Objects added to the bucket while the empty bucket action is in progress might be deleted. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.
Charges are accrued at the same rate as requests that are made using the API/SDK. Reference the S3 developer guide for technical details on the following request types: PUT, COPY, POST, LIST, GET, SELECT, Lifecycle Transition, and Data Retrievals. DELETE and CANCEL requests are free. LIST requests for any storage class are charged at the same rate as S3 Standard PUT, COPY, and POST requests.
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 8 months ago

so if i delete using dashboard GUI i wont be charged?