How to Delete the WindowsApps Folder in Windows 11 (and When Not To)

Don’t delete C:\Program Files\WindowsApps, because deleting the one on your Windows drive breaks apps across the system. Uninstall apps you don’t need in Settings > Apps > Installed apps to shrink it safely. If you have a leftover WindowsApps folder on another drive, such as D:, take ownership of it in its security settings and then delete it. Deleting a leftover one on a second drive is usually safe. The WindowsApps folder can grow to tens of gigabytes, and Windows blocks you from opening or deleting it.

What is the WindowsApps folder?

WindowsApps is a hidden, protected folder where Windows 11 stores apps installed from the Microsoft Store, along with many built-in apps such as Calculator, Photos, Notepad, Snipping Tool, and the Store itself. It’s owned by a system account called TrustedInstaller, which is why you get “access denied” when you try to open it.

You may also find a WindowsApps folder at the root of another drive. Windows creates one there if you’ve ever chosen to install Store apps or games on that drive.

Why you shouldn’t delete the one on C:

Removing C:\Program Files\WindowsApps or files inside it can stop the Start menu, Settings, the Microsoft Store, and built-in apps from working. Fixing that often requires resetting or reinstalling Windows. It also isn’t necessary, because Windows gives you safe ways to reclaim the space.

Safe ways to shrink WindowsApps

Uninstall apps you don’t use

  1. Open Settings > Apps > Installed apps.
  2. Set Sort by to Size (large to small).
  3. Click the three dots next to an app you don’t need and choose Uninstall.

Store games are often the biggest items. Removing them frees space in WindowsApps immediately. See how to uninstall apps on Windows 11 for more options.

Move apps to another drive

Many Store apps can be moved. In Installed apps, click the three dots next to an app, choose Move if it’s available, and pick another drive. To install future apps elsewhere, go to Settings > System > Storage > Advanced storage settings > Where new content is saved, and change New apps will save to.

Use Storage Sense and cleanup recommendations

Go to Settings > System > Storage. Turn on Storage Sense and open Cleanup recommendations to remove temporary files, old downloads, and unused apps.

How to delete a leftover WindowsApps folder on another drive

If you reinstalled Windows, moved apps back, or no longer use a secondary drive for Store apps, its WindowsApps folder may just be taking up space. First, make sure no installed apps still live there by checking the drive under Installed apps or moving them back to C:.

  1. Open File Explorer, click View > Show > Hidden items, and go to the drive, for example D:.
  2. Right-click WindowsApps and choose Properties.
  3. Open the Security tab and click Advanced.
  4. Next to Owner, click Change, type Administrators, click Check Names, and then OK.
  5. Check Replace owner on subcontainers and objects and click Apply. This can take a few minutes.
  6. Back on the Security tab, click Edit, select Administrators, check Full control, and click OK.
  7. Delete the folder. Some files may still be in use, so restart and try again if needed.

If you’d rather use the command line, open Command Prompt as administrator and run these, replacing D: with your drive letter:

takeown /f "D:\WindowsApps" /r /d y
icacls "D:\WindowsApps" /grant administrators:F /t

Then delete the folder. On non-English versions of Windows, the /d y answer may need to be the local word for “yes.”

If the drive only holds old app data, formatting it is another clean option, but back up anything else on it first.

Does this work in Windows 10?

Yes. Windows 10 uses the same WindowsApps folder in C:\Program Files, with the same protections. The advice is identical: don’t delete the one on your Windows drive, shrink it by uninstalling apps in Settings > Apps > Apps & features, and only take ownership of and delete a leftover WindowsApps folder on a secondary drive.

Before you change anything

Create a restore point or backup first, especially if you’re changing permissions. Never change ownership of the WindowsApps folder on your Windows drive. Doing so can cause the same problems as deleting it.

Related: How to delete temp files in Windows 11.

More WindowsApps questions

Why is my WindowsApps folder so large?

Games and large apps from the Store, plus multiple versions kept during updates, add up quickly. Uninstalling unused apps is the safest way to shrink it.

Can I delete individual folders inside WindowsApps?

It’s not recommended. Deleting app folders by hand leaves broken entries behind. Uninstall the app from Settings instead, which removes its folder properly.

How do I fix apps after deleting WindowsApps by mistake?

Try reinstalling the affected apps from the Microsoft Store. If the Store itself is broken, use Settings > System > Recovery > Fix problems using Windows Update, which reinstalls Windows while keeping your files and apps.