Simply Delete a File or Folder Showing Error “Access Is Denied” using Full Control

I am not sure why this happens but there is a workaround.

To take control of the folder containing the undeletable create a text file called “delete.bat” and add the following lines to it:

SET DIRECTORY_NAME="C:\Locked Directory"
TAKEOWN /f %DIRECTORY_NAME% /r /d y
ICACLS %DIRECTORY_NAME% /grant administrators:F /t
ICACLS %DIRECTORY_NAME% /reset /T
PAUSE
  • You will need to change the directory path to your “Your Desire Want to Delete Directory” folder or file path e.g. “C:\Locked Directory” to “C:\Your Desire Want to Delete Directory”.

Right click on the file “delete.bat” select “Run As Administrator” and you should now have full control of the directory :heavy_check_mark: and all sub directories meaning you can do what you wish with them.:+1:

Source: superuser

12 Likes

Thanks!!! For the trick

1 Like

I guess Unlocker does the same thing

Unblocker won’t work for such permission case! That’s why this script is needed to gain full access!

1 Like
Friendly Websites

https://igg-games.com/ https://pcgamestorrents.com/ https://pirateiro.com/ ettvdl.com https://dodi-repacks.site/ https://crackingpatching.com/ https://glodls.to/ https://prostylex.org/ https://haxnode.com/ https://freedownloadae.com/ https://www.novahax.com/ https://www.sadeempc.com/ freecoursesonline.me ftuapps.dev