s3 DeleteObject pricing

0

Hi there,

I would like to delete millions of objects from an s3 bucket using AWS SDKs. My questions are:

  1. Is there a fee for DeleteObject api call? AWS sales rep told me that the cost is $0.00044 per 1,000 DELETE requests plus the fee for LIST requests.
  2. Is DeleteObjects cheaper than DeleteObject? With DeleteObjects, I can delete more objects in one request that will save me a lot in total.
  3. Regarding LIST requests, will it be more expensive if I use DeleteObject instead of DeleteObjects?

Overall, I would like to know if there is a cost to delete millions of objects using AWS SDKs.

Thank you so much for your time. I really appreciate it.

AKMin
asked 16 days ago570 views
1 Answer
1

Hello.

Is there a fee for DeleteObject api call? AWS sales rep told me that the cost is $0.00044 per 1,000 DELETE requests plus the fee for LIST requests.

As you know, there is a charge for LIST requests, but I don't think there is a charge for deleting objects.
https://aws.amazon.com/s3/pricing/?nc1=h_ls

DELETE and CANCEL requests are free.

Is DeleteObjects cheaper than DeleteObject? With DeleteObjects, I can delete more objects in one request that will save me a lot in total.

As answered above, the documentation states that there is no charge for DELETE requests.

Regarding LIST requests, will it be more expensive if I use DeleteObject instead of DeleteObjects?

"DeleteObjects" can include multiple objects to be deleted at the time of request.
When it comes to millions of objects, it is necessary to make a LIST request to search for objects to be deleted, so I expect that the fees will be similar for both.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/delete-objects.html

profile picture
EXPERT
answered 16 days ago
profile picture
EXPERT
Steve_M
reviewed 16 days ago
  • Hi Riku. Thanks a lot for your answer. If I delete 1000 objects, will it result in 1,000 LIST requests? Does DeleteObjects make just 1 LIST request for 1,000 objects whereas DeleteObject makes 1 LIST request for each object, resulting in 1000 LIST requests for 1000 objects? Thanks again.

  • The "DeleteObject" and "DeleteObjects" APIs themselves do not perform the LIST API. If you run the LIST API yourself to find objects to include in a "DeleteObject" or "DeleteObjects" API request, you will be charged a fee. In other words, if you already know the object name and path to be deleted, there is no need to run the LIST API, so there is no charge.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions