> For the complete documentation index, see [llms.txt](https://xynthexia.gitbook.io/windows-setup/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xynthexia.gitbook.io/windows-setup/troubleshooting/cant-delete-files-no-permission.md).

# 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]
