Can't delete files (no permission)

Deleting files that require permission from yourself to delete (and aren't in use):

  • Note: watch the spacing used in commands below.

  • Open command prompt (as admin) via cmd in search bar

  • Take ownership of directory via: takeown /f [directory you want to delete] /r

  • Give yourself full access via: icacls [directory you want to delete] /grant [your username]:F /t

  • Delete the files via: del [directory you want to delete]

Last updated