What is AppData Folder in Windows and How to Clean It Up?

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.

What is the AppData Folder in Windows

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:

<a href=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

clear appdata

How to Clen Up the AppData in Windows

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

clean appdata

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.

appdata folder too big

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.

Clen-Up Temporary Files in Windows

One way is to use the Settings app to remove temporary files, which include the safe-to-delete items in the AppData folder.

  1. Press WIN+I to launch the Settings app.
  2. Click System → Storage.
    appdata folder taking up space
  3. Click “Temporary files.
    how to <a href=clean appdata folder windows" width="512" height="310" />
  4. You’ll see a list of temporary file categories. Select the ones you want to clean up, including the Temporary Internet Files, and click the “Remove files” button.
    how to clean appdata

Clean Up Temp Files in the AppData Folder

Once you have closed all running applications, you can safely delete the temporary files in the AppData folder manually.

  1. Open the File Explorer, paste %temp% in the address box;
  2. The Temp folder should open in the current user’s profile. (%Username%\AppData\Local\Temp). In our case, the size of the Temp folder is about 4GB;
  3. Delete all (or selected) files from Temp folder;appdata cleanup
  4. Some files cannot be deleted because they are being used by other programs—which is normal. When you receive such a notification, check the “Do this for all current items” box and click Skip.
    windows appdata folder too large

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

clean up appdata

Move the Roaming Folder Mapping to Another Drive

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.

  1. Navigate to the AppData folder and open the Roaming folder properties;
  2. Switch to the Location tab, enter the new Roaming folder location, and click OK. In this example, I’ll move the Roaming folder location to the X drive and retain the folder structure.
    how to clear appdata
  3. Click Yes to automatically create the new location if it doesn’t exist.
    windows clean appdata
  4. Click Yes to move all files to the new location.
    windows clear appdata
  5. Wait for the file copy to finish.
    appdata local folder huge
  6. Restart computer and check if your apps are working properly. You can then rename the old Roaming folder to something like Roaming.bak and delete the original folder after a few days.

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.