Cleaning up game and launcher sessions

A familiar situation: a guest leaves, the next one sits down at the PC — and finds someone else's Steam account still online, with a saved library and possibly a linked card. At best this is awkward, at worst it is grounds for a real complaint against the club. Guests almost never sign out of games and launchers themselves, and counting on their conscientiousness is pointless — it makes more sense to set up automatic cleanup once and forget about the problem.

Setting this up once when you launch the club is much easier than explaining to an unhappy guest later why someone else's game progress turned up in their session.

Step 1. Turn on restart on sign-out

The main tool for this is already in the general shell settings.

  1. Open

    →
    →
    → Logout Action.

  2. Select Restart. The computer fully restarts after the guest's session ends — this resets all running apps and local launcher sessions that do not keep the sign-in separately from the system.

We recommend choosing Restart rather than softer options such as "Close All Programs" — the difference looks small at first glance, but it is exactly what separates a clean PC from a PC with someone else's open sessions.

Some launchers (primarily Steam, if it has "stay signed in" or auto-login turned on) can keep the sign-in even after the PC restarts — in this case a restart alone is not enough, and the problem with other people's accounts comes back.

  • End Pending Sessions and Log Out Disconnected Clients in

    →
    →
    , User Session block — they control automatically ending the session when the connection between the server and the client is lost, not cleaning up the game launchers themselves, but they also affect how quickly a "stuck" guest session closes if something goes wrong on the network.

Step 3. Add cleanup tasks on user sign-out

For launchers that remember the sign-in even after a restart, set up a script that deletes the saved sign-in when the guest's session ends.

  1. Open

    →
    and create a task of the Script type. More in Tasks.

  2. Select the Script Type: Batch for commands or Registry Script for .reg scripts, and paste the script for the launcher you need from the list below.

  3. Turn on Hidden Task Execution.

  4. On the Task Activations tab, assign the task to the User Logout event — see Task Activations.

The scripts delete files on the client PC. Check the paths — especially if the launcher is not installed in the default folder — and run the task on one PC first.

Steam

Replace D:\Games\Steam with the path to the Steam folder on your PCs.

set "Steam=D:\Games\Steam" taskkill /F /IM "steam.exe" taskkill /F /IM "steamwebhelper.exe" del /S /Q "%Steam%\config\*.vdf" rmdir /S /Q "%Steam%\userdata" rmdir /S /Q "%LocalAppData%\Steam\htmlcache"
Epic Games Launcher
cd /d "%LocalAppData%\EpicGamesLauncher\Saved\Config\WindowsEditor\" type GameUserSettings.ini | findstr /i /v "Data" > temp.txt del GameUserSettings.ini rename temp.txt GameUserSettings.ini

In some launcher versions, the file is in the Windows folder instead of WindowsEditor — check the path on your PCs.

Battle.net
cd /d "%AppData%\Battle.net" type Battle.net.config | findstr /i /v "SavedAccountNames" > temp.txt del Battle.net.config rename temp.txt Battle.net.config
Riot Client (Valorant, League of Legends)
rmdir /S /Q "%LocalAppData%\Riot Games\Riot Client"
Wargaming
rmdir /S /Q "%AppData%\Wargaming.net\WorldOfTanks" del /S /Q "%AppData%\Wargaming.net\GameCenter\user_info.xml"
FACEIT and FACEIT AC

FACEIT — Batch:

rmdir /S /Q "%AppData%\FACEIT"

FACEIT AC — Registry Script:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\FACEIT\FACEIT Client] "token"=""
Discord
taskkill /F /IM "Discord.exe" rmdir /S /Q "%AppData%\Discord"
TeamSpeak 3 and TeamSpeak 6

TeamSpeak 3:

taskkill /F /IM ts3client_win64.exe del /F /Q "%AppData%\TS3Client\settings.db"

TeamSpeak 6:

taskkill /F /IM TeamSpeak.exe del /F /Q "%AppData%\TeamSpeak\Default\settings.db"
Google Chrome
del /S /Q "%LocalAppData%\Google\Chrome\User Data\Default\*" del /S /Q "%LocalAppData%\Google\Chrome\User Data\Default\Cache\*"
Other games and programs

Arena Breakout: Infinite:

taskkill /F /IM "arena_breakout_infinite_launcher.exe" rmdir /S /Q "%AppData%\arena_breakout_infinite_launcher"

Delta Force:

taskkill /F /IM "df_launcher_global.exe" rmdir /S /Q "%AppData%\df_launcher_global" for /d %%i in ("%AppData%\df_launcher_global_*") do rmdir /S /Q "%%i"

Genshin Impact — Registry Script:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\miHoYo\Genshin Impact] "MIHOYOSDK_ADL_PROD_OVERSEA_h1158948810"=""

Roblox:

taskkill /F /IM "RobloxPlayerBeta.exe" rmdir /S /Q "%LocalAppData%\Roblox\LocalStorage"

ExitLag:

taskkill /F /IM "ExitLag.exe" rmdir /S /Q "%LocalAppData%\ExitLag"

Where launchers store the sign-in

If the launcher you need is not on the list, find the file where it stores the sign-in, and delete or clear it with a task:

Launcher or program

Where the sign-in is stored

Steam

<Steam folder>\config\loginusers.vdf

Epic Games Launcher

%LocalAppData%\EpicGamesLauncher\Saved\Config\Windows\GameUserSettings.ini (or the WindowsEditor folder)

Battle.net

%AppData%\Battle.net\Battle.net.config

Riot Client

%LocalAppData%\Riot Games\Riot Client\Data\RiotClientPrivateSettings.yaml

EA app (EA Desktop)

%LocalAppData%\Electronic Arts\EA Desktop\cookie.ini

Ubisoft Connect

%LocalAppData%\Ubisoft Game Launcher\settings.yml

Wargaming Game Center

%AppData%\Wargaming.net\GameCenter\user_info.xml

Rockstar Games Launcher

%UserProfile%\Documents\Rockstar Games\Social Club\Profiles

Minecraft

%AppData%\.minecraft\launcher_accounts.json

Discord

%AppData%\Discord

FACEIT AC

Registry: HKEY_CURRENT_USER\Software\FACEIT\FACEIT Client

Result

  • After the guest's session ends, the PC fully restarts: running apps and local launcher sessions are reset, and the next guest sits down at a clean PC.

  • "Stuck" sessions are ended automatically when the connection between the server and the client is lost.

  • Cleanup tasks delete the saved sign-in of launchers that remember it after a restart.