👋 I know folders are not a thing but

👋 I know folders are not a thing, but still, what would be the best way to delete by prefix? Use case: we will use folders to store "per customer" data, and ideally, we'd like to delete all files from a prefix quickly.
3 Replies
vvo
vvoOP•2y ago
Side question: if we have to delete files one by one, which way is "faster": 1. a worker bound to the bucket using rm or 2. using the s3 api to http delete? Thanks!
Karew
Karew•2y ago
ListObjectsV2 can get all objects by prefix, on the API, then you can issue DeleteObjects to remove up to a 1000 objects at once Whichever AWS SDK you're using should have both
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server