title: Delete files from folder in S3 bucket
body: <p>I have an AWS S3 bucket <code>test-bucket</code> with a <code>data</code> folder. The data folder will have multiple files.</p>
  
  <p>I am able to delete the files in the S3 bucket.
  But what I want is to delete the files in the <code>data</code> folder without deleting the folder.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>aws s3 rm  s3://test-bucket/data/*
  </code></pre>
  
  <p>Also checked using <code>--recursive</code> option, but that does not work.</p>
  
  <p>Is there a way I can delete the files in the folder using AWS CLI?</p>