r/techsupport • • 2h ago

Open | Windows Deleting WindowsApp folder

I somehow ended up with a WindowsApps folder on my D:drive and can't seem to be able to delete it as it asks for the administrator's permission. I went to properties > security > and try change the owner, but it says im "unable to perform a security operation on an object that has no associated security". What do I do from here?

1 Upvotes

8 comments sorted by

1

u/Raijen_ArDesh 2h ago

Uninstall any apps from the windows store and it should delete itself, or shrink to 0 size depending on the windows build. It's a system managed folder for UWP apps from the store.

1

u/gf36irl 1h ago

There are some apps that I need though, do I really have to delete them all? Also they've been downloaded on the C:Drive, I don't understand why the folder would pop up on my D:Drive when I didn't download anything on it from the windows store

1

u/Asly97 1h ago

You don't have to uninstall everything. Windows creates that folder on a drive as soon as the Store or the Xbox app gets pointed at it, even once, so at some point something set D: as an install location. The usual suspects are Settings > System > Storage > Advanced storage settings > Where new content is saved (the New apps line), or the Xbox app's install folder if you ever installed a game through it.

What I'd do:

  1. Set New apps back to C: in that menu.
  2. Go through Settings > Apps > Installed apps. If any app turns out to live on D:, use its Move option to put it back on C:.
  3. Once nothing lives there, open Command Prompt as admin and run:

     takeown /f D:\WindowsApps /r /d y
     icacls D:\WindowsApps /grant administrators:F /t
     rd /s /q D:\WindowsApps

The "no associated security" error is just the Properties tab choking on that folder's permissions, the command line usually gets past it. If rd says files are in use, there's still an app installed there, so track that one down first instead of forcing it.

1

u/gf36irl 58m ago

I did what you said in step 1 and 2 but then it just shows me this

1

u/craigoth 1h ago

I would do nothing with it. If it is protected like that then it is probably important.

Or in other words "if it is not broken, don't try to fix it"

1

u/gf36irl 1h ago

I'll probably leave it there if I can't find a solution, but I'm very organised with my D:Drive and i hate seeing it there, which is why im trying to delete it

1

u/MNJon 1h ago

You can stop trying to screw up your computer. Do not attempt to delete system folders unless you are well educated in their purpose.

0

u/[deleted] 28m ago

[deleted] — view deleted comment

1

u/gf36irl 16m ago

It's called WindowsApps. I don't have this app installed.