Excel question, Win 11

Vera Z 20 Reputation points
2026-10-31T03:13:01.6633333+00:00

I'm trying to delete some folders, and I get the message "you don't have permission to

delete this file". This is my personal computer and my files. Please tell me how to

change a setting that I didn't know I made. Thanks.

Windows for home | Windows 11 | Settings
0 comments No comments

Answer accepted by question author

AI answer

2026-10-31T03:14:13.8566667+00:00

For an ordinary personal folder, take ownership of it and grant your Windows account Full control; this is a Windows file-permission issue, not an Excel setting.

Change ownership in File Explorer

Do not use these steps on protected Windows folders such as Windows, Program Files, or WindowsApps. Those folders can be owned by SYSTEM or TrustedInstaller intentionally; for example, WindowsApps stores Microsoft Store apps and is highly protected.^1^

For a folder containing only your personal files:

  1. Right-click the folder and select Properties.
  2. Select Security → Advanced.
  3. Beside Owner, select Change.
  4. Enter your Windows username, select Check Names, and then select OK.
    • If the username is uncertain, select Advanced → Find Now, and choose your account.
  5. Select Replace owner on subcontainers and objects.
  6. Select Apply → OK, then close and reopen Properties.
  7. Return to Security → Advanced.
  8. Select Add → Select a principal, choose your account, and grant Full control.
  9. Apply the permission to This folder, subfolders and files, select OK, and retry deletion.

Windows controls deletion through access-control permissions attached to each file or folder. Being the computer’s administrator does not automatically make the account the owner of every folder.^2^ Microsoft’s NTFS guidance confirms that taking ownership and then granting permission may be required before deletion.^3^

If File Explorer cannot change the permissions

Open Start, type cmd, right-click Command Prompt, and select Run as administrator. Replace the example path with the exact folder path:

takeown /f "C:\Users\YourName\FolderName" /r /d y
icacls "C:\Users\YourName\FolderName" /grant "%USERNAME%":F /t /c

Then delete the folder normally. takeown recursively assigns ownership, while icacls grants the signed-in account Full access.^4^ ^5^

Apply these commands only to the specific personal folder—not an entire drive or Windows system directory—because broad permission changes can weaken Windows protections.

If permission changes do not solve it

  • The file is open: Close Excel and any application that may be using files in that folder. Restart Windows and delete the folder before reopening those applications. Windows cannot delete a file while another process holds it open.^3^
  • The path is unusually long: Rename one or more parent folders to shorter names, or move the highest folder you can access closer to the drive root—for example, from a deeply nested location to C:\DeleteMe—and retry. Deep paths can prevent normal deletion.^3^
  • The folder name ends with a space or period: Normal File Explorer operations may address the wrong path. After verifying the path carefully, an elevated Command Prompt can use extended-path syntax:
      rd /s /q "\\?\C:\Exact\Path\ProblemFolder "
    
    Warning: This permanently deletes the folder and everything beneath it without using the Recycle Bin. Invalid trailing characters require special path syntax.^3^
  • The folder is on a drive mounted inside another folder: If deletion fails while Windows tries to send it to the Recycle Bin, select the folder and press Shift+Delete. This bypasses the Recycle Bin and is permanent.[^6^](https://support.microsoft.com/topic/-access-denied-when-you-delete-folders-from-a-mounted-drive-212dc103-60e8-e3bc-1d25-e05c5febe12d#symptoms ""Access Denied" When You Delete Folders from a Mounted Drive")

The setting at Settings → Privacy & security → File system controls app access; it does not give your account ownership or deletion rights over a folder.^7^


References

  1. Why can't I move folders back off my new SSD - Microsoft Q&A
  2. Access control overview
  3. You can't delete a file or a folder on an NTFS file system volume
  4. takeown
  5. icacls
  6. "Access Denied" When You Delete Folders from a Mounted Drive
  7. [Windows 11](https://support.microsoft.com/windows/privacy/windows-file-system-access-and-privacy#summary)
AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.