📚 The docs are live. The user manual → covers every screen and setting, and the extension docs → show you how to add a store we haven't.
Building an extension is simpler than it sounds, and the easiest route needs no code at all.

How to Clear Out Orphaned Non-Steam Game Files on Steam Deck

Find the leftover Proton prefixes and shader cache from games you’ve uninstalled, and get that space back without reformatting

Uninstalling a game doesn't remove its Proton prefix or its shader cache. Test enough games and those leftovers take up a lot of storage. This covers how to find them, check what's inside them, and delete them in Game Mode.

You'll need: Junk Store Pro, which is where the File Manager lives. Everything below is done in Game Mode.

What Uninstalling Leaves Behind

Every Windows game you run gets two folders of its own, both named after the game's numeric ID rather than its name:

~/.steam/steam/steamapps/compatdata/1091500/     <- its Proton prefix
~/.steam/steam/steamapps/shadercache/1091500/    <- its shader cache

The prefix is effectively a small Windows install of its own, and it holds your user data for that game: save files, settings and configs, controller bindings, registry entries, and anything else the game wrote down while you played it. Step 5 comes back to this before you delete anything.

The shader cache is the harmless one. It holds precompiled shaders so the game runs smoothly instead of stuttering while it compiles them, and nothing in it is yours.

Those folders belong to Steam rather than to Junk Store, so when you uninstall the game they stay put. A Deck picks up hundreds of them over a couple of years, and the usual problem is that a folder called 3671418494 tells you nothing about whether it's safe to delete.

The File Manager puts the game's name against each numbered folder, and flags the ones nothing on your Deck claims any more.


Step 1: Check Your Free Space

Worth knowing your number before you begin, so you can see what you got back. Go to Steam Settings > Storage and note your free space and your NON-STEAM figure.

Steam Deck Storage settings showing the internal drive with 52.4 GB free of 938.4 GB, and the usage bar broken into Games 67.99 GB, DLC 18.12 GB, Shaders 2.65 GB, Media 29.06 MB and Non-Steam 797.29 GB

Don't panic at the NON-STEAM number. It's a catch-all for anything Steam didn't install itself, so your whole non-Steam library, your apps and your downloads are all in there. Most of it has to stay, and only a slice is worth clearing.

Step 2: Open the File Manager

Hold SELECT and press X from anywhere in Steam. It's also on the Junk Store main menu, and Ctrl+B works if you have a keyboard attached. Opening it this way gives you plain file browsing, which is all this job needs. See two ways to open it for what changes when you open it from a game instead.

Press LB to show the sidebar if it isn't already up, then choose Compatdata.

Junk Store File Manager open at steamapps/compatdata with Compatdata highlighted in the sidebar, listing folders by game name such as Alan Wake and Arcade Paradise with their ID numbers in grey

Every folder now shows the game it belongs to, with its ID still in grey next to the name in case you need to match it against something else.


Step 3: Read the Colours

The manual covers this in reading the colours.

Compatdata listing showing game names in different colours, with Borderlands 2 and Borderlands GOTY Enhanced in green as Steam games and Beglitched, Bendy and the Ink Machine and Cat Quest in blue as non-Steam games

ColourWhat it is
GreenA game from your Steam library
BlueA non-Steam game, including anything Junk Store installed
YellowA runtime rather than a game, such as Proton itself
Orange No Game badgeNothing on this device claims it. This is an orphan
Leave the yellow ones alone. Runtimes are shared, so a yellow entry isn't being used by one game, it's being used by everything that runs through it.

Step 4: Find the Orphans

Scroll to the bottom of the list. Orphans have no game name to show, so they stay as bare numbers, carry an orange No Game badge, and the whole row is dimmed. They stand out clearly from the named entries above them.

The bottom of the compatdata listing where named entries like Wuthering Waves and XCOM 2 give way to bare numbered folders, each dimmed and carrying an orange No Game badge

An orphan means the game was uninstalled and its prefix was left behind. Those are the ones you can delete.


Step 5: Check for Saves First

Do this one first. A Windows game usually keeps its saves inside its Proton prefix, so an orphaned prefix is an uninstalled game with its saves still sitting in it. If there's any chance you'll reinstall, have a look before it goes.

Open the numbered folder and dig down to:

<the numbered folder>/pfx/drive_c/users/steamuser/

Documents, Saved Games and AppData below that are the usual suspects. Copy anything worth keeping somewhere else before you carry on. There's more on this in check for saves before you delete a prefix.

This works in reverse too. If you've lost your saves for a game you reinstalled, this is where to look. Reinstalling often creates a fresh prefix and leaves the old one behind as an orphan with your saves still in it. Find the orphan, dig into drive_c, and copy them back across.

Step 6: Move Them to the Trash

  1. Paint over the orphans

    Hold R2 and move down the list. Everything you pass over gets selected, and dragging back over something removes it again. Y clears the lot if you want to start over. The keyboard and mouse equivalents are in selecting several files.

    Several orphaned compatdata folders selected and highlighted in blue, each still showing its No Game badge, with the named entries above them left unselected
  2. Open the menu and move them to the trash

    Press L2 to open File Operations, or right click if you're on a keyboard and mouse. Choose Move to Trash. It tells you how many items it's about to take, which is a handy last check that you selected what you meant to.

    The File Operations menu open over the file listing, offering Copy, Cut, Move to Trash with a count of 7 items, Properties and Cancel
Checking a folder's size first. Highlight it, press L2 and choose Disk Usage. It tells you what that folder takes up, so you can see whether it's worth deleting before you do it. More on that further down.
Nothing is gone yet. Everything the File Manager deletes goes to the trash first, so you can still get it back at this point. That also means the space hasn't come back yet either. Step 8 handles that.

Step 7: Do the Same in Shader Cache

Back to the sidebar, this time Shader Cache. It works the same way as compatdata, with the same colours and names.

The File Manager at steamapps/shadercache with Shader Cache highlighted in the sidebar, listing the same games by name and colour as compatdata did

Scroll down and you'll find the orphans in exactly the same place, marked the same way.

Orphaned shader cache folders at the bottom of the listing, shown as dimmed bare numbers each with an orange No Game badge

No checking needed this time. Shader caches never hold saves, so orphaned shaders are safe to remove without looking inside. There's usually a lot more of them, too.

Paint over them with R2 the same way.

A long run of orphaned shader cache folders selected and highlighted in blue, all showing No Game badges

Then L2 and Move to Trash again.

The File Operations menu showing Move to Trash with a count of 39 items for the selected shader cache folders


Step 8: Empty the Trash

This is the step people forget, and it's the reason the space doesn't come back. Everything you've deleted so far is still on the drive, taking up every byte it did before.

Have a look in Trash first if you want to be sure of what's in there.

The Trash folder in the File Manager showing the numbered folders moved there earlier alongside three old Junk Store installer files of around 199 MB each

When you're happy, highlight Trash in the sidebar, press L2, and choose Empty Trash.

The sidebar menu open on the Trash entry, offering Empty Trash, Open in Active Pane, Disk Usage and Cancel

This one is permanent. It asks first, and it's the point of no return rather than an ordinary tidy-up. Make sure you've pulled out any saves you wanted before you confirm.

Before and After

On the Deck in these screenshots, clearing the dead prefixes, the orphaned shader cache and a Downloads folder full of old installers took free space from 52.4 GB to 202.1 GB. NON-STEAM dropped from 797.29 GB to 647.55 GB.

Before:

Steam Deck Storage settings before the cleanup, showing 52.4 GB free of 938.4 GB with Non-Steam at 797.29 GB and only a thin grey section of free space at the end of the usage bar

After:

The same Storage settings after the cleanup, showing 202.1 GB free of 938.4 GB with Non-Steam down to 647.55 GB and a much wider grey section of free space

That's about 150 GB back.


Where Else to Look

Leftover prefixes are usually a fair chunk of your NON-STEAM figure, but they won't be all of it. Apps and whatever else you've downloaded over the years add up too.

The sidebar gets you to the spots that quietly fill up:

  • Downloads. Installers and setup files tend to collect here long after the thing they installed was set up.
  • Screenshots. If you capture a lot, they mount up without you noticing.
  • Documents and Desktop. Both are one press away in the sidebar.

The Downloads folder in the File Manager showing a directx folder alongside several installer files, each with its size shown on the right

What's worth keeping is your call. Plenty of people hang on to an installer so they can copy it across to another machine later. Have a look at the sizes, decide what you still want, and move the rest to the trash.

For anything outside those folders, use the disk analyser. Highlight any folder, or a sidebar entry like Home, press L2 and choose Disk Usage. You get a treemap: every folder and file drawn as a rectangle sized by how much space it takes, so the biggest thing on screen is the biggest thing on disk.

The Disk Usage treemap showing an Epic games folder totalling 2.9 GB, drawn as four coloured rectangles sized by the space each game takes, with the selected one showing its full path and size along the bottom

  • It fills in as it scans, so a big folder starts showing its shape straight away rather than leaving you at a progress bar.
  • Select a rectangle to drill into it. That's how you follow a large area down to whatever is actually responsible, which is usually a few levels below where you started.
  • You can bin things from inside the view. Press X to move what you've found to the trash. It confirms first and tells you the size of what's going.

Common finds are games you forgot you installed, video captures, an emulator's ROM library, or a flatpak runtime nothing uses any more.

Empty the trash when you're done. Same as Step 8, and for the same reason.

Cleaning Up a Second Deck

You can do all of this to your other machine from this one. Junk Store Pro finds other Decks on your network and gives each one its own entries in the sidebar, Compatdata and Shader Cache included, with that machine's game names resolved the same way as your own. Deleting works across the connection too, so you can clear the leftovers off both Decks in one sitting.

Both machines need Junk Store Pro. The other Deck has to be paired with this one first. See pairing two machines, or How to Import Games Over Your Local Network for the walkthrough.

If a folder has you second-guessing, leave it. Come and ask on Discord. Better a question than a lost save.

More in the manual

The user manual covers the why behind these screens, if you want the detail rather than the steps.

Stuck or need help?

Most issues are quick to sort out. Here's where to start.

Want the full detail? The user manual covers every screen and setting in Junk Store Pro, and is worth a look if you'd rather read up than hunt through fixes.

Still stuck? Open a support ticket right in the Support Portal

For game-specific issues, feedback, or just a chat, you'll find us on:

Discord Reddit Lemmy

On Discord, head to the #js-pro-support channel.