Delete many S3 Files at once

How to delete many files at once in a S3 Tardigrade Bucket?

aws s3 --endpoint=http://localhost:7777/ rm s3://bucket-name/*.pdf

does NOT work.

As usual for s3:

aws s3 --endpoint http://localhost:7777 rm s3://test1/ --recursive 
aws s3 --endpoint http://localhost:7777 rb s3://test1


aws s3 --endpoint http://localhost:7777 rm s3://test1/nested
delete: s3://test1/nested
aws s3 --endpoint http://localhost:7777 rb s3://test1


aws s3 --endpoint http://localhost:7777 rb s3://test1 --force 
1 Like

I cant delete all Entrys and also not with --force. I get this error on gateway terminal:

2020-02-17T14:18:06.521+0100 ERROR gateway error: {“error”: “bucket: metainfo error: Too Many Requests”, “errorVerbose”: “bucket: metainfo error: Too Many Requests\n\*Client).GetBucket:218\n\*Project).GetBucket:106\n\*Project).GetBucketInfo:142\n\*Project).OpenBucket:162\n\*gatewayLayer).DeleteObject:114\n\*layerLogging).DeleteObject:113\n\\n\\n\tnet/http.HandlerFunc.ServeHTTP:2007\n\*Router).ServeHTTP:212\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\*Cors).Handler.func1:200\n\tnet/http.HandlerFunc.ServeHTTP:2007\n\\n\\n\\n\*Server).Start.func1:108\n\tnet/http.HandlerFunc.ServeHTTP:2007\n\tnet/http.serverHandler.ServeHTTP:2802\n\tnet/http.(*conn).serve:1890”}

Yes, I know. Because of this:

You can request to increase the rate limit:
Sorry for inconvenience!

This is discussed here:

And the POLL is here:

At the moment just run it several times, it will finally delete the content or/and bucket