iTunes is storing too much in my Windows 7 Users folder.

How do I stop iTunes from storing a ton of data in my users/appdata folder? Specifically, the CloudPurchasesPlayCache folder inside Apple Computer.


I deleted over 14 gigs in it, opened iTunes back up and clicked around a bit, and checked back on what it had stored.


This is taking up 320mb.

C:\Users\Jason\AppData\Local\Apple Computer\iTunes\CloudPurchasesPlayCache\000000004002B080\Downloads\Live Free or Die _ Breaking Bad, Sea.tmp


The previous folder I removed had several tmp folders within Downloads.


Please help, I'm generally good at figuring out issues like this through Google, but I can't find anything regarding this specific issue.

Thanks in advance.

Windows 7

Posted on Jan 31, 2013 12:30 AM

Reply
7 replies

Jan 31, 2013 6:30 AM in response to diesel vdub

Ahhh. I did some testing and it seems that the media files I have installed do not cause a tmp file to be created when they are played. I just installed my OS on a new SSD and was worried about the extra space being taken up. I'm guessing I accidentally played some media I don't have installed when messing around with the new iTunes. All my purchased shows display in the new iTunes, and I only keep some of them.


What I don't understand is why these files are being created without anything actually being downloaded. They just seem to be taking up space for no reason. It would be nice to disable this, but at least I know where to remove any accidental files now.

Aug 18, 2013 8:27 PM in response to pcormacwhocares

The best solution I've found is to use SymLink Creator to create an NTFS junction that redirects the cloudpurchasesplaycache folder to another folder on an alternate disk. Even though my iTunes library is already on my second drive, (SSD for OS and Apps, HDD for media) I have to use a junction to get this ish stored on the media volume.

Apr 3, 2014 11:39 AM in response to flexcapacitor

You can delete everything in the cache subfolder, but as soon as you stream media in iTunes (playing something from iCloud, without downloading it to your library first) the folder will grow. It's bad behavior for iTunes to be using the AppData folder to store persistent media cache when it already has a designated media library, particularly when the library is on a different volume from the OS / user folder (if you use an SSD you probably know what I mean).


The best thing to do is use SymLink Creator, as I've said. You delete the cache folder "cloudpurchasesplaycache", then create an NTFS directory junction (with SymLink Creator) called "cloudpurchasesplaycache" in its' place. The target location for the link is whatever folder on whatever drive you want iTunes to cache to. An NTFS junction isn't much different from a shortcut, in so far as double-clicking it will open the folder you've set as the target. The difference is that when a program reads the contents of a folder it does NOT see a junction as a shortcut; the junction appears to software as if it were a normal folder. So iTunes thinks its reading/writing to ~\AppData\Local\yaddayadda, but the data is transparently being routed to whatever disk the junction points to. It's similar to mounting an entire disk as a subfolder, only it's a folder of a disk mounted inside another disk's directory tree.


User uploaded file

Jul 30, 2014 1:27 PM in response to Peace Bringer

For those that use iTunes Match like me, this folder will keep filling up. To resolve this for me and my poor Windows laptop SSD, I set this VBS script to run on a schedule. I could do something similar for my Mac with Automator but I don't have a need on that machine.

Create this file in Notepad and save as ClearItunesCache.vbs. Note the bolded part. You may need to change that to whatever the folder name is on your system.Or you could do one level up but I'm not sure if the PlayCacheInfo.xml is important. This script could definitely be improved so feel free to reply back with changes. I just recycled someone else's cleanup script.


Set objFS = CreateObject("Scripting.FileSystemObject")

strFolder = "%LocalAppData%\Apple Computer\iTunes\PlayCache\00000000060E05B8" 'Path

numdays=2 'Number of Days

today=Now

Set objFolder = objFS.GetFolder(strFolder)

Go (objFolder)

Sub Go(objDIR)

If objDIR <> "\System Volume Information" Then

For Each eFolder in objDIR.SubFolders

Go eFolder

Next

For Each strFile In objDIR.Files

If DateDiff("d",strFile.DateLastModified,today) >= numdays Then

objFS.DeleteFile(strFile)

End If

Next

End If

End Sub

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iTunes is storing too much in my Windows 7 Users folder.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.