title: Attempting to delete files in s3 folder but the command is removing the entire directory itself
body: <p>I have an s3 bucket which has 4 folders now of which is input/.
  After the my airflow DAG Runs at the end of the py code are few lines which attempt to delete all files in the input/.</p>
  <pre><code>response_keys = self._s3_hook.delete_objects(bucket=self.s3_bucket, keys=s3_input_keys)
          deleted_keys = [x['Key'] for x in response_keys.get(&quot;Deleted&quot;, []) if x['Key'] not in ['input/']]
          self.log.info(&quot;Deleted: %s&quot;, deleted_keys)
  
          if &quot;Errors&quot; in response_keys:
              errors_keys = [x['Key'] for x in response_keys.get(&quot;Errors&quot;, [])]
              raise AirflowException(&quot;Errors when deleting: {}&quot;.format(errors_keys))
  </code></pre>
  <p>Now, this sometimes deletes all files and sometimes deletes the directory itself. I am not sure why it is deleting even though I have specifically excluded the same.</p>
  <p>Is there any other way I can try to achieve the deletion?</p>
  <p>PS I tried using BOTO, but the AWS has a security which will not let both access the buckets. so Hook is all I got. Please help</p>