Skip to content

Instantly share code, notes, and snippets.

@recalde
Last active June 18, 2025 01:06
Show Gist options
  • Save recalde/ed998db824e2b95e987961d32f08412a to your computer and use it in GitHub Desktop.
Save recalde/ed998db824e2b95e987961d32f08412a to your computer and use it in GitHub Desktop.
curl -sSL https://gist.githubusercontent.com/recalde/ed998db824e2b95e987961d32f08412a/raw/steamdeck_cleanup.sh | bash
#!/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