I've recently started to get notifications on my Mac telling me that I was running low on disk space. Upon some investigation I found that Spotify was taking up a good chunk of space with its cache
directory. Now this wasn't the offline music directory, that's altogether a different location, this was the ~/Library/Caches/com.spotify.client
Not sure why there needs to be over 7Gb of cache data for a streaming service. I've also checked if any of my library contents were set to be downloaded - they weren't.
So I opened the Terminal
app and ran the following commands to remove all this cache data (I quit Spotify first)...
That by itself was a temporary solution however. Now I had to tell Spotify to limit the size of the cache directory and that was done by creating a file called ~/Library/Application Support/Spotify/prefs
and adding the following contents to it...
The above sets the limit to 1Gb (or 1024Mb). After making this change I opened up Spotify and used it as usual.
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer