title: How do I delete a versioned bucket in AWS S3 using the CLI?
body: <p>I have tried both <code>s3cmd</code>:</p>
  
  <pre><code>$ s3cmd -r -f -v del s3://my-versioned-bucket/
  </code></pre>
  
  <p>And the AWS CLI:</p>
  
  <pre><code>$ aws s3 rm s3://my-versioned-bucket/ --recursive
  </code></pre>
  
  <p>But both of these commands simply add <code>DELETE</code> markers to S3. The command for removing a bucket also doesn't work (from the AWS CLI):</p>
  
  <pre><code>$ aws s3 rb s3://my-versioned-bucket/ --force
  Cleaning up. Please wait...
  Completed 1 part(s) with ... file(s) remaining
  remove_bucket failed: s3://my-versioned-bucket/ A client error (BucketNotEmpty) occurred when calling the DeleteBucket operation: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
  </code></pre>
  
  <p>Ok... how? There's no information in <a href="http://docs.aws.amazon.com/cli/latest/reference/s3/index.html">their documentation</a> for this. S3Cmd says it's a 'fully-featured' S3 command-line tool, but it makes <a href="http://s3tools.org/usage">no reference to versions</a> other than its own. Is there any way to do this without using the web interface, which will take forever and requires me to keep my laptop on?</p>