Skip to content

Instantly share code, notes, and snippets.

@unferna
Created March 4, 2026 00:40
Show Gist options
  • Select an option

  • Save unferna/0a1bd7c6d79965c93c804060d3f799e6 to your computer and use it in GitHub Desktop.

Select an option

Save unferna/0a1bd7c6d79965c93c804060d3f799e6 to your computer and use it in GitHub Desktop.
You finally decided to evolve and improve your life
#!/bin/bash
echo "πŸš€ Starting League of Legends uninstall..."
echo "πŸ›‘ Closing Riot and League processes..."
pkill -9 "League of Legends"
pkill -9 "Riot Client"
pkill -9 "LeagueClient"
PATHS=(
"/Applications/League of Legends.app"
"/Applications/Riot Client.app"
"$HOME/Library/Application Support/Riot Games"
"$HOME/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.riotgames.leagueoflegends.sfl*"
"$HOME/Library/Caches/com.riotgames.leagueoflegends"
"$HOME/Library/Caches/Riot Games"
"$HOME/Library/Preferences/com.riotgames.leagueoflegends.plist"
"$HOME/Library/Saved Application Data/com.riotgames.leagueoflegends.savedState"
"$HOME/Library/Logs/Riot Games"
"/Users/Shared/Riot Games"
)
for path in "${PATHS[@]}"; do
if [ -e "$path" ] || [ -d "$path" ]; then
echo "πŸ—‘οΈ Deleting: $path"
rm -rf "$path"
else
echo "βœ… Not found (already cleaned): $path"
fi
done
echo "🧹 Deleting trash bin..."
rm -rf ~/.Trash/*
echo "✨ Done! League of Legends has been erased from your Mac."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment