You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, there is no API to remove a bucket even if it is empty.
It is difficult to remove files that are placed directly in the root of the bucket.
We frequently use the following workaround but people feel it's too cumbersome: if you have a bucket named MyBucket, and it has a folder MyFolder, you may remove the content of MyFolder in 2 steps: first, on your local machine, create an empty folder call MyFolder. Then, execute
Agreed, very frustrating. I often have buckets with only files, i.e. not folders, so above wont work (will start using this now, but bit silly workaround)
Error: running the following command fails to remove the content of the bucket:
tsd-s3cmd del --force -r s3://ofreibucket
Further, it's not possible to remove the bucket itself (even for empty buckets)
tsd-s3cmd rb s3://ofreibucket
The only workaround is to sync an empty folder:
tsd-s3cmd sync --no-check-md5 --delete-removed --force MyFolder s3://ofreibucket
However this has major limitation: this way one can't remove files in the root of the bucket.
(base) [oleksandr@ip24 empty]$ tsd-s3cmd del -r s3://ofreibucket
User > p33-ofrei
Password >
OTP > 311713
ERROR: Parameter problem: Please use --force to delete ALL contents of s3://ofreibucket
(base) [oleksandr@ip24 empty]$ tsd-s3cmd del -r --force s3://ofreibucket
User > p33-ofrei
Password >
OTP > 017316
ERROR: Error parsing xml: mismatched tag: line 6, column 2
ERROR: <html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.16.1</center>
</body>
</html>
ERROR: S3 error: 401 (Unauthorized)
As far as I know, there is no API to remove a bucket even if it is empty.
It is difficult to remove files that are placed directly in the root of the bucket.
We frequently use the following workaround but people feel it's too cumbersome: if you have a bucket named MyBucket, and it has a folder MyFolder, you may remove the content of MyFolder in 2 steps: first, on your local machine, create an empty folder call MyFolder. Then, execute
The text was updated successfully, but these errors were encountered: