53

Trying to make sapce on my C drive. I see that my Appdata/Local/Packages folder is almost 20GB!

Is it safe to delete this? If not, can it be 'pruned' without affecting installed applications?

Bachalo
  • 2,507
  • 13
  • 48
  • 61
  • 2
    No it is not safe, Even if you delete this folder it will be recreated, but you will also lose all your applications stored data. If your willing to lose ALL of your settings (Outlook emails, browser profiles) feel free but like I said the data will return – Ramhound Aug 04 '17 at 19:35

2 Answers2

37

If you use Windows Subsystem for Linux (WSL) you will blow away your entire file system for any linux distribution used if you delete this folder.

flickerfly
  • 971
  • 10
  • 14
25

AppData folders store per-user information for applications, so if you delete files from an application's applications data directory, it will likely have to recreate that data from default values. In effect the program will forget that you have used it before, configuration choices you may have made, saved files (like game savefiles), etc.

I would recommend you use a tool like windirstat to determine where the space is being used, and what application(s) rely on it. From there you can then begin to determine the impact of your proposed deletion.

See here for some more information related to your query: http://www.pcworld.com/article/2690709/windows/whats-in-the-hidden-windows-appdata-folder-and-how-to-find-it-if-you-need-it.html

As commented, some applications like WSL and apps from the windows store will rely heavily on Application Data storage, to the extent that deleting the files from App Data is akin to uninstalling the application (in a clumbsy, unclean way), so understanding the way a particular app uses Application Data is quite important when determining what you can remove.

Frank Thomas
  • 35,097
  • 3
  • 77
  • 98
  • 20
    An important example of an application that you absolutely would not want to delete the Package data for is Windows Subsystem Linux (WSL): It stores the entire emulated Linux filesytem root inside the AppData/Local/Packages folder. See https://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/ If you're using WSL and delete the Packages subfolders, say goodbye to your entire Linux filesystem. – pygosceles Sep 06 '19 at 18:22
  • 4
    Yet on the other hand we have Microsoft's Zune Video and Kandy Crush Saga... I have deleted a lot of folders from Packages before (guided by WinDirStat) and there really is some junk. – Orwellophile May 18 '21 at 05:37