Last active
May 3, 2020 00:01
-
-
Save explorador/e0bb10192cdbe3da9d8f1b496755f851 to your computer and use it in GitHub Desktop.
Deletes Spotify Cache on MacOS
This file contains 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
# Deletes Spotify Cache | |
# (Run this when app starts running slow) | |
spotifycache() { | |
# (zshell only) Do not query the user before executing ‘rm *’ or ‘rm path/*’. | |
setopt localoptions rmstarsilent | |
# Clear cache files | |
\rm -fr ~/Library/Caches/com.spotify.client/Browser/* | |
\rm -fr ~/Library/Caches/com.spotify.client/Data/* | |
\rm -fr ~/Library/Caches/com.spotify.client/fsCachedData/* | |
echo 'Cache Cleared!' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment