A tiny command-line application to clear all achievements for a game on Steam, on Linux.
For some games I like to clear all achievements before playing the game again, so I can once again earn all the achievements in the game.
I used to use Steam Achievement Manager for that on Windows. I wasn't able to get that working on Linux, which is why I wrote this application.
Note that 80% of the code was generated by Claude, but it wasn't working. I fixed the code, cleaned it up, and refactored it.
./clear-steam-achievements <steam_app_id>
To get a Steam App ID, right-click on a game in your library, click Properties, and go to Updates. Alternatively, go
to the store page and copy-paste the ID from the URL. E.g. for The Witcher 3, the App ID is 292030.
Make sure that the Steam client is running and that you own the game.
64 bit:
gcc -ldl -o clear-steam-achievements main.c
32 bit:
gcc -m32 -ldl -o clear-steam-achievements main.c