Last active
June 18, 2025 01:06
-
-
Save recalde/ed998db824e2b95e987961d32f08412a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSL https://gist.githubusercontent.com/recalde/ed998db824e2b95e987961d32f08412a/raw/steamdeck_cleanup.sh | bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "[🚀] Resetting user data but keeping SteamOS and installed emulators..." | |
# Wipe Steam user data (but not Steam itself) | |
rm -rf ~/.steam/root/config | |
rm -rf ~/.steam/root/steamapps/compatdata | |
rm -rf ~/.local/share/Steam/config | |
rm -rf ~/.local/share/Steam/steamapps/compatdata | |
# Wipe browser sessions (Chromium/Chrome) | |
rm -rf ~/.config/chromium | |
rm -rf ~/.config/google-chrome | |
# Optionally wipe saved Wi-Fi credentials (if needed) | |
# sudo rm /etc/NetworkManager/system-connections/* | |
echo "[✅] Reset complete. You can now shut down or hand off the device." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment