The GamingRoot file shows up on many Windows computers that use the Xbox app, Game Pass for PC, or Microsoft Store games. Some users find it on a second drive or inside system folders and worry it is harmful. It is a simple system-made file that helps Windows track game install paths. This guide explains what it is, why it appears, and when it is safe to remove it.
What is the GamingRoot File?

The GamingRoot file links a drive or folder to the Xbox app and Gaming Services. It marks the drive as a game install location. When you install Game Pass titles or Microsoft Store games, Windows checks this file to know where the game library is stored.
The file is tied to:
- Gaming Services
- Xbox app
- Microsoft Store game installs
- Game Pass for PC
- System metadata and configuration
It does not store game files, personal data, or sensitive information. It only helps Windows track where games should install or update.
Where You Find the GamingRoot File
You may see the file in places like:
- The root of a drive used for game installs (for example, D:)
- ProgramData locations
- Old game folders left after uninstall
- Drives that were once set as a game library
Windows places the file in spots where the Xbox app needs to manage permissions and create game-related folders.
Why Windows Creates the GamingRoot File
Windows makes the file when you choose a drive for new game installs inside the Xbox app or Gaming Services. It works as a map for:
- Game library paths
- Drive configuration
- Game metadata
- App permissions
- Install and update tracking
It lets the Xbox app pick the right folder and avoid install errors.
Is the GamingRoot File Safe To Delete?

The file itself is safe. Removing it does not harm your system. The problem is not the file, but when you delete it at the wrong time.
Safe:
- If the drive no longer holds installed games
- If you moved the game library to another drive
- If Gaming Services is broken and needs reset
Not safe:
- If games from Microsoft Store or Game Pass still live on that drive
- If the Xbox app still uses that drive as its main install path
- If you delete it while games are updating
When removed, Windows may lose track of game install locations.
What Happens If You Delete the GamingRoot File?
Deleting the file can lead to different results.
Possible outcomes:
- The Xbox app cannot find your game library
- Game installs fail or show errors
- Gaming Services makes a new .GamingRoot file after restart
- The app asks you to pick a new install location
- Already installed games may need to be repaired
Most of the time, Windows rebuilds the file once you open the Xbox app or change library settings.
When You Should Delete the GamingRoot File?
There are a few valid reasons to remove the file.
You should delete it if:
- The drive no longer stores games
- You removed the Xbox app or Gaming Services
- The file blocks changing your game install folder
- The file is corrupted and causing path errors
- You moved your Game Pass library to a new drive
- An old removed drive left behind leftover metadata
Deleting it helps reset the install path.
How To Delete the GamingRoot File Safely
Follow these steps so you avoid breaking game paths.
- Open Settings and uninstall the Xbox app.
- Open Apps settings and repair or uninstall Gaming Services.
- Check the drive and locate the .GamingRoot file.
- Delete the file or rename it.
- Restart Windows.
- Reinstall the Xbox app.
- Pick your game library location again.
This resets everything clean and avoids broken install folders.
Final Thoughts
The GamingRoot file is a simple system file, not a virus or harmful program. It helps Windows keep track of where Microsoft Store and Game Pass games should install. You can delete it when a drive no longer stores games or when the Xbox app needs a reset. Knowing when and how to remove it keeps your system clean and avoids game install errors.
If this helped, you can share it or leave feedback.