- Newest
- Most votes
- Most comments
Hello.
I also answered at the URL below.
https://repost.aws/ja/questions/QUZouQPXJERluPStXFvke0tw/s3-deleteobject-pricing
The "DeleteObject" and "DeleteObjects" APIs themselves do not execute the LIST API.
You will be charged a fee if you run the LIST API yourself to search for objects to include in a "DeleteObject" or "DeleteObjects" API request.
In other words, if you know all the file names and paths of objects to be deleted, there is no need to run the LIST API, so there is no charge for the LIST API.
It is easy to understand when looking at the AWS CLI, but the "--key" option of the "delete-object" command specifies the object to be deleted.
If you know this "--key", there is no need to run the LIST API.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/delete-object.html
Also, if you have a large number of objects, I think setting life cycle rules is effective.
https://repost.aws/knowledge-center/s3-empty-bucket-lifecycle-rule
Relevant content
- asked 7 months ago
- Accepted Answerasked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago