title: How delete a file in system32 folder with python?
body: <p>for the thesis work on forensic analysis I should try to automatically delete a file created and placed in the &quot;system32&quot; folder.</p>
  <p>This is the code I ran:</p>
  <pre><code>os.system(&quot;C://Windows//System32//update.exe&quot;)
  os.chmod(&quot;C://Windows//System32//update.exe&quot;, stat.S_IRWXU)
  os.remove(&quot;C://Windows//System32//update.exe&quot;)
  </code></pre>
  <p>The error is as follows:</p>
  <p><code>Traceback (most recent call last): File &quot;C:\Users\xxxx\PycharmProjects\Tesi\main.py&quot;, line 5, in &lt;module&gt; os.chmod(&quot;C://Windows//System32//update.exe&quot;, stat.S_IRWXU) PermissionError: [WinError 5] Accesso negato: 'C://Windows//System32//update.exe'</code></p>
  <p>How can I run it with the right permissions?</p>