User Tools

Site Tools


computing:windows:del_perms

This is an old revision of the document!


Delete Permissions and ACLs from a Folder Recursively

See also Delete Temporary Files

See also Delete Windows Folders That Are Too Long

Take ownership as the logged in user, usually as an administrator:

takeown /F <foldername> /R /D y

Reset the ACLs:

icacls <foldername> /T /C /Q /RESET

Delete Files

If you can't delete a file, often getting the error:

Error 0x80070780 The file cannot be accessed by the system.

Try this:

  1. Remove attributes using Windows Explorer → Right-Click the File → Properties
  2. In PowerShell, use the command Remove-Item <filename>
computing/windows/del_perms.1527355268.txt.gz · Last modified: 2018/05/26 11:21 by gcooper