title: Correct Method to Delete Delta Lake Partion on AWS s3
body: <p>I need to delete a Delta Lake partition with associated AWS s3 files and then need to make sure AWS Athena displays this change. The purpose is because I need to rerun some code to re-populate the data.</p>
  <p>I tried this</p>
  <pre class="lang-py prettyprint-override"><code>deltaTable = DeltaTable.forPath(spark, path)
  deltaTable.delete(&quot;extract_date = '2022-03-01'&quot;) #extract date is the partition
  </code></pre>
  <p>And it completed with no errors but the files on s3 still exist and Athena still shows the data even after running <code>MSK REPAIR TABLE</code> after the delete. Can someone advise the best way to delete partitions and update Athena?</p>