Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2016 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7ee3cf435cfd503a333478f9018ea2f6 to your computer and use it in GitHub Desktop.
Save anonymous/7ee3cf435cfd503a333478f9018ea2f6 to your computer and use it in GitHub Desktop.
> touch foo.txt
> aws s3 cp foo.txt s3://test-rmdir-tom/xyz/foo.txt
upload: ./foo.txt to s3://test-rmdir-tom/xyz/foo.txt
> aws s3 ls --recursive s3://test-rmdir-tom
2016-04-25 18:07:09 0 xyz/foo.txt
> aws s3 rm s3://test-rmdir-tom/xyz
A client error (404) occurred when calling the HeadObject operation: Key "xyz" does not exist
Completed 1 part(s) with ... file(s) remaining
> aws s3 rm s3://test-rmdir-tom/xyz/
A client error (404) occurred when calling the HeadObject operation: Key "xyz/" does not exist
Completed 1 part(s) with ... file(s) remaining
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment