Use your text editor of choice or if you don't have one use Windows Notepad
Opening with Notepad may or may not result in a fancy mess
- Close Spotify
- Open File Explorer and paste the following into the address bar
%appdata%/Spotify
¤ - Open the file named prefs with your text editor
- Change the numeric value following storage.size= . If storage.size= doesn't exist add it manually to the end of the file and assign numeric value. This value represents megabytes. One gigabyte equals 1024 megabytes. In the end, it should look something like this
storage.size=1024
- Save the file
- Start Spotify
- The cache should be reduced; not exceeding the size that you entered
- To verify, check the size of the Data folder in the following directory
%localappdata%/Spotify
¤ For the App-Version of Spotify on Windows 10 use %localappdata%\Packages\SpotifyAB.SpotifyMusic_xxxxxxxxxxxxx\LocalState\Spotify
instead of %appdata%/Spotify
, credit to @SawPsyder
Apple TextEdit.app works fine to open "prefs" or one can use some similar code editing program
- Close Spotify
- Open Finder and press ⇧ + ⌘ + G or Open Spotlight (⌘ + Spacebar) and paste the following into the address bar
~/Library/Application Support/Spotify
- Open the file named prefs with your text editor
- Change the numeric value following storage.size= . If storage.size= doesn't exist add it manually to the end of the file and assign numeric value. This value represents megabytes. One gigabyte equals 1024 megabytes. In the end, it should look something like this
storage.size=1024
- Save the file (⌘ + S)
- Start Spotify
- The cache should be reduced; not exceeding the size that you entered.
- To verify, check the size of the Data folder in the following directory
~/Library/Caches/com.spotify.client/
Since last month my storage usage grew to 1.32 GiB.
I did the test and set
storage.size=512
and it reduced the usage to 810MiB.So it got reduced by ~512MiB.
Meaning, it doesnt look like this setting effects all save-paths.
I checked the
%localappdata%\Packages\SpotifyAB.SpotifyMusic_xxxxxxxxxxxxx
folder for possible subfolders wich are now 512MiB in size and found%localappdata%\Packages\SpotifyAB.SpotifyMusic_xxxxxxxxxxxxx\LocalCache\Spotify\Data
to be viable.After setting
storage.size=256
the folder%localappdata%\Packages\SpotifyAB.SpotifyMusic_xxxxxxxxxxxxx\LocalCache\Spotify\Data
got reduced to ~256MiB.But folders like
%localappdata%\Packages\SpotifyAB.SpotifyMusic_xxxxxxxxxxxxx\LocalCache\Spotify\Browser
were left with there original size. (In my case 174MiB - deleting this folders content doesnt seem to harm, it gets rebuild. Still dont recommend without further testing)All in all this might mean that there is still some more work to do to really softlimit the storage usage. At least for the App-Version of Spotify