title: How to delete a file that is giving the error "Access is denied" despite running powershell as administrator?
body: <p>I was deleting the xampp directory off my computer and despite the uninstall completing fully, the xampp directory doesn't seem to be removed from the C:/ drive. </p>
  
  <p>So I tried to delete it myself using the powershell terminal. I tried deleting the directory ("C:/xampp") and I got an "Access is denied" error so I tried doing the same thing but this time I tried running powershell as administrator but I still go the same error.</p>
  
  <p><a href="https://i.stack.imgur.com/o89ve.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o89ve.png" alt="enter image description here"></a>  </p>
  
  <p>This is an image of the terminals response. There is an uninstall.exe file inside the xampp directory that I also can not delete despite running powershell as administrator.</p>
  
  <p>Im new to posting on stack overflow so if I have doing something annoying or just plain wrong, let me know and I will edit the post.</p>
  
  <p>Thanks for your time </p>