The AppData system folder in Windows is the default location for application data, settings, and caches. Over time, it can become bloated with unnecessary files, which can lead to slower performance and take up free space on your hard drive.
In the profiles of each Windows user, there is a hidden folder called AppData (%userprofile%\AppData). Applications that the user is using usually store their data and cache in this folder.
The AppData folder on Windows has three subfolders:
clean appdata folder" width="556" height="195" />
The default location of the AppData folder in Windows is :\Users\\AppData.
You can quickly navigate to this directory using the following command in the Run dialog or Windows Explorer address bar:
%userprofile%\AppData
The AppData folder grows with each installed application. Windows itself doesn’t control the size of this folder, which means its growth is uncontrolled and may consume all free storage space.
If your computer is running low on disk space, one of the places to check for potential cleanup is the AppData directory.
More importantly, uninstalling an app doesn’t usually remove its data files from the AppData folder. As a result, the AppData folder becomes filled with files and folders you no longer need or use.
We prefer to use the WinDirStat tool to quickly analyze the disk space used in Windows. On Windows 10 and 11, WinDirStat can be installed using the built-in WinGet package manager:
winget install --id=WinDirStat.WinDirStat -e
In this example, you can see that the size of the AppData folder is about 21 GB. The graphical folder map in WinDirStat allows you to quickly find files and folders that are taking up a lot of free space. In our case, we quickly found a large vhdx image in the \AppData\Local\Packages folder left over from experimenting with WSL.
However, in most cases, you should never manually delete any folders or files from the AppData folder. Such a brutal method can harm other apps on your computer. First, use the built-in Windows tools to clean up the AppData folder.
One way is to use the Settings app to remove temporary files, which include the safe-to-delete items in the AppData folder.
Once you have closed all running applications, you can safely delete the temporary files in the AppData folder manually.
You can also use the PowerShell one-liner to quickly clean up the temporary files in the AppData folder:
Remove-Item ` -Path "$env:temp\*" ` -Recurse -Confirm:$false ` -ErrorAction SilentlyContinue ` -Verbose
Rather than playing catch-up with the size of the AppData folder, it may be more practical to move the AppData folder to another drive with more space.
Now you understand what the AppData folder is used for and how to safely delete it if it starts to take up too much disk space.