title: Python Boto3 - how to drop a 'folder' and rename another one?
body: <p>I have these paths in S3:</p>
  
  <pre><code>s3://mykey/mytest/file1.txt
  s3://mykey/mytest/file2.txt
  s3://mykey/mytest/file3.txt
  </code></pre>
  
  <p>and</p>
  
  <pre><code>s3://mykey/mytest_temp/file4.txt
  s3://mykey/mytest_temp/file5.txt
  s3://mykey/mytest_temp/file6.txt
  </code></pre>
  
  <p>Want to drop <code>s3://mykey/mytest/</code> (and all files in it) <br>and THEN rename <code>s3://mykey/mytest_temp/</code> to <code>s3://mykey/mytest/</code> while keeping all files in there (<code>file4, file5, file6</code>).
  <br><br><br>
  Final result should be - only 1 <code>folder</code>:</p>
  
  <pre><code>s3://mykey/mytest/file4.txt
  s3://mykey/mytest/file5.txt
  s3://mykey/mytest/file6.txt
  </code></pre>
  
  <p>How to achieve this using <code>Python Boto3</code>?</p>
  
  <p>Thanks.</p>