title: AWS S3: How to delete all contents of a directory in a bucket but not the directory itself?
body: <p>I have an AWS S3 bucket entitled <code>static.mysite.com</code></p>
  
  <p>This bucket contains a directory called <code>html</code></p>
  
  <p>I want to use the AWS Command Line Interface to remove all contents of the <code>html</code> directory, but not the directory itself. How can I do it?</p>
  
  <p>This command deletes the directory too:</p>
  
  <pre><code>aws s3 rm s3://static.mysite.com/html/ --recursive
  </code></pre>
  
  <p>I don't see the answer to this question in the manual entry for <a href="http://docs.aws.amazon.com/cli/latest/reference/s3/rm.html" rel="noreferrer"><strong>AWS S3 rm</strong></a>.</p>