I’m trying to all the files in my Spaces bucket.
I go to the control panel and the message says: This space cannot be destroyed using the control panel because it contains too many files. View Details
So I go to the folder and try to select all files and delete them. It runs for about a minute then stops working. Nothing is deleted.
I go to install Amazon CLI. And I follow the instructions in Amazon’s docs to delete.
I used the following line:
aws s3 rm s3://my-bucket --recursive --endpoint-url http://sfo2.digitaloceanspaces.com
I get the error: fatal error: maximum recursion depth exceeded while calling a Python object
What am I supposed to do now to empty out my bucket?
Also, “Spaces” is not a tag in this forums.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I have more than 1 million files in my bucket. s3cmd removes files very low. How I can remove my bucket the fastest way?
Hey friend,
Sorry for the trouble this has given you. I have a slightly different suggestion here:
https://www.digitalocean.com/docs/spaces/resources/s3cmd-usage/#delete-a-space
Jarland
It looks like s3cmd deletes about 1 file per second, so my 136K files will take 37 hours.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.