Question

Error when I tried to delete folder on space

Posted March 21, 2020 143 views
DigitalOcean Accounts

Error below when I tried to delete folder on space:

“Sorry, your directory could not be deleted.”

2 comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello, @danilodene

You can easily delete folders using s3cmd from your PC. s3cmd is a popular cross-platform command-line tool for managing S3 and S3-compatible object stores.

You can check our tutorial for configuring s3cmd:

https://www.digitalocean.com/docs/spaces/resources/s3cmd/

Once s3cmd is configured you can use the following command to delete a folder:

s3cmd del s3://BUCKET/OBJECT

e.g

s3cmd del -r s3://sammy-test/TestFolder

If this is successfull the output should be:

delete: 's3://sammy-test/TestFolder/'

Hope this helps!

Regards,
Alex

Submit an Answer