title: Python MSAL REST Graph: requests.delete does not fully delete file
body: <p>I am working with the <a href="https://pypi.org/project/msal/" rel="nofollow noreferrer">MSAL</a> library to upload to, download and delete files and folders from a OneDrive repo.</p>
  <p>To delete a folder I first need to delete all files and folders from it. If I do it in Edge manually, it works fine: I delete all files, then go up the tree and delete the folder.</p>
  <p>When I use <code>requests.delete</code> to delete, files disappear from view in the browser, and the delete operation completes successfully, but then trying to delete the containing folder, either programmatically or manually in the browser fails with the <code>Request was cancelled by event received. If attempting to delete a non-empty folder, it's possible that it's on hold</code> error message.</p>
  <p>The delete block looks like this:</p>
  <pre><code>requestHeaders = {'Authorization': 'Bearer ' + result[&quot;access_token&quot;],'Content-Type': 'application/json'}
  r = requests.delete(delete_path, headers=requestHeaders)
  </code></pre>
  <p>What am I doing wrong? How to permanently delete a file? Do I need to specify some additional information in either <code>requestHeaders</code> or in another parameter from those listed in <a href="https://www.w3schools.com/python/ref_requests_delete.asp" rel="nofollow noreferrer">https://www.w3schools.com/python/ref_requests_delete.asp</a> ?</p>