I need to uninstall a Steam game just in the terminal. I don't know if it is possible, I have tried deleting the folder of the game in


but if you open Steam after deleting the folder it's still in the library. Obviously you can not run it but I want to delete it from the library too, so I think that there is a more formal or usual way to uninstall a Steam game with the terminal, maybe using Steam commands, I mean opening Steam in the background and running a Steam-specific command.

closed as unclear what you're asking by Rui F Ribeiro, msp9011, slm Aug 21 '18 at 5:19

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I've looked around a bit, and can't find a CLI they've written to do this. Is there a reason that you can't right click on steam app, and click Delete? I feel like there's a different problem here that's causing you to need to interact with Steam this way. – trueCamelType Aug 20 '18 at 21:10
  • 1
    no, just i want to include that line to a program in c++ that i am programming, and i was using system(comands here); in order to achieve deleting the folders, so i thought that could be intersting find a way to do it – WhySoBizarreCode Aug 20 '18 at 21:23
  • I'm not at a linux computer at the moment, but I bet there's a configuration file that tells the desktop app what to display. You could probably grep for that line and find it. I can look later and post if I find it. I'd guess either in ~/.steam , or /etc/steam...something like that. – trueCamelType Aug 20 '18 at 21:33
  • Yes, it's definitely possible. Too much to fit in a comment, but if you have a different question that's still open I can try to help, or you can send me a PM here, on Reddit at the same username, or email me at yahoo.com with the same username. – l3l_aze Sep 15 '18 at 3:27

You can use steamcmd for this (it’s packaged in Debian’s non-free repositories and in Ubuntu’s multiverse):

steamcmd +apps_installed +quit

will list all installed applications with their id, and

steamcmd +app_uninstall appid +quit

will uninstall the application matching the given id; add -complete before the id for a complete uninstall.

  • nice, and can i unistall it just with the name ? – WhySoBizarreCode Aug 20 '18 at 23:33
  • and without the use of steamcmd it could be possible ?. because the problem is that when i delete the folder of the game in the steamapps/common. the game is deleted but steam shows in the aplication like the game is installed, and when you want to play it obviously it says an error has ocurred and then it start to download it again, which is cool but the main problem is that steam never shows like the game is uninstalled, "it only think that there are files needed of the game that are not downloaded" – WhySoBizarreCode Aug 20 '18 at 23:51
  • i think that there could exist a file of steam that is like a list of games "installed" and if i found it i can be able of modificate it. – WhySoBizarreCode Aug 20 '18 at 23:53
  • You asked for a more “formal” way to uninstall a game from the terminal, and that’s steamcmd. There is no doubt a file which lists the installed games, and you could find that and modify it (I don’t know what it is), but you’d end up re-implementing the uninstall operation of steamcmd if you handled all the variations. Note too that quite a few games install files outside of steamapps/common, so deleting the content there isn’t always sufficient. – Stephen Kitt Aug 21 '18 at 7:58
  • As far as I know, a game can’t be uninstalled by name, only by appid. – Stephen Kitt Aug 21 '18 at 8:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.