Fix Windows that has folder that will not delete

We'll close programs, take ownership, delete contents first, then use rd /s /q or Safe Mode—or tell you when to call a pro.

Category
Troubleshooting · Home maintenance
Time
10–25 min
Last reviewed
What you'll need
  • Administrator account

Step-by-step diagnostic

Step 1 of 5
Show full guide

Steps

Goal: Close programs, take ownership, delete contents first, then use rd /s /q or Safe Mode.

  • Close all programs. Take ownership with Replace owner on subcontainers. Delete contents, then folder.
  • Good: Folder deleted. You are done.
  • Bad: Use rd /s /q from Command Prompt or Safe Mode.

Close programs

Goal: Release files in the folder.

  • Close all programs. Task Manager, end related processes. Try delete.
  • Good: Folder deletes.
  • Bad: Take ownership.

Take ownership

Goal: Get permission to delete the folder and contents.

  • Right-click folder, Properties, Security, Advanced. Change owner. Check Replace owner on subcontainers. Apply.
  • Good: You can delete. Use rd /s /q if normal delete fails.
  • Bad: Run Command Prompt as Administrator and try rd /s /q.

When to get help

Call a technician if:

  • The folder still will not delete after Safe Mode.
  • It is a system folder.
  • You see disk errors.

Verification

  • The folder is gone.
  • No “in use” or “access denied” errors.
  • Parent folder no longer shows the folder.

Escalation ladder

Work from the device outward. Stop when the problem is fixed.

  1. Close programs End processes that may be using the folder.
  2. Take ownership Change owner; Replace owner on subcontainers.
  3. Delete contents first Remove files inside, then the folder.
  4. rd /s /q Command Prompt as Admin.
  5. Safe Mode Boot Safe Mode; delete.
  6. Call a pro System folder; disk errors.

What to capture if you need help

Before calling support or posting for help, have these ready. It speeds everything up.

  • Folder path
  • Exact error message
  • Programs that might use the folder
  • Steps already tried

Are files in the folder in use?

Open files block folder delete.

Close all programs. Task Manager, end related processes. Good: Folder released—try delete. Bad: Take ownership.

You can change your answer later.

Close the program

End the process. Try delete. If access denied, take ownership with Replace owner on subcontainers.

Did delete work?

After closing, delete may succeed.

Try deleting the folder. Good: Folder deleted—you are done. Bad: Take ownership, then rd /s /q from Command Prompt.

You can change your answer later.

Take ownership and rd /s /q

Properties, Security, Advanced. Change owner, Replace owner on subcontainers. Command Prompt as Admin: rd /s /q "path". If still failing, Safe Mode.

Folder deleted

The folder is removed. Empty Recycle Bin if needed.

Reviewed by Blackbox Atlas

Frequently asked questions

Why would a folder not delete on Windows?
Files inside are in use, permission denied, path too long, or a program has the folder open. Close programs and take ownership first.
What is "path too long"?
Windows has a 260-character path limit. Nested folders can exceed it. Use a shorter path or robocopy to move/delete.
When should I use rd /s /q?
When normal delete fails. rd /s removes the folder and all contents; /q skips confirmation. Run from Command Prompt as Administrator.

Rate this guide

Was this helpful?

Thanks for your feedback.

Continue to