s3wipe
s3wipe copied to clipboard
Deleting s3://bucket/foo deletes s3://bucket/foo2
I was trying to delete a directory called foo
, but if I passed s3://bucket/foo/
, it would not proceed, and if I passed s3://bucket/foo
it would also delete s3://bucket/foo2
I worked around it by deleting s3://bucket/foo/1
, s3://bucket/foo/2
and so-forth for every first character.
Two possible solutions: allow trailing slashes, or assuming a trailing slash after the input (i.e. don't delete partial paths).