Terminal script for compare and delete unused Library folder and files
Other options:


Sort ~/Library/Preferences or ~/Library/Containers by modification date
Enable calculating all sizes and sort folders by size in Finder
for f in ~/Library/Containers/*; do osascript -e "app id \"${f##*/}\"" &amp;&gt; /dev/null || echo $f; done
cd ~/Library/Application\ Support; for d in *; do find "$d" -exec stat -f "%m $d" {} + | sort -n | tail -n1; done | sort -n
cd ~/Library/Preferences; find . -name \*.LSSharedFileList.plist -mtime +30 -delete; ls -rt *.plist | grep -v apple | sed 's/^/rm /'