title: S3 boto3 delete files except a specific file
body: <p>Probably this is just a newbie question.</p>
  <p>I have a python code using boto3 sdk and i need to delete all files from an s3 bucket except one file.</p>
  <p>The issue is that the user is updating this S3 bucket and places some files into some folders. After i copy those files i need to delete them, hence the issue here is that the folders are deleted as well, since there is no concept of folders on Cloud Providers. I need to keep the &quot;folder&quot; structure intact. I was thinking of placing a dummy file inside each &quot;folder&quot; and exclude that file from deletion.</p>
  <p>Is this something doable?</p>