s3cmd: Deleting files or folder does not work

s3cmd s3://MYBUCKET/FOLDER does not work. (folder is empty)
s3cmd s3://MYBUCKET/FILE does not work.

Output of both commands is "File FILE sucessfully deleted", yet the file remains on the bucket.

Deleting with the S3 Webinterface works just fine.


Solution 1:

It looks like you have the syntax wrong (although it's possible you just typed it into this thing wrong).

From the S3 Tools documentation it looks like you want something like this:

s3cmd del s3://BUCKET/OBJECT

and

s3cmd del -r s3://BUCKET/FOLDER

Typically you need to use the -r, or recursive, flag to delete folders.

If that doesn't work, check that your permissions and keys are correct.