Cache on desktop mistake

MacBook Air 2019.

To make space on my Mac I made the mistake of following these instructions (until step 3):

"1. Open Finder and select Go > Go to Folder from the menu bar.

2. Type ~/Library.

3.Find a Caches folder and copy its contents to the desktop for a backup.

4.Move the original Caches folder to Trash.

5.Empty your Trash bin."

However, I wasn't quite sure how to do step 3. I managed to drag, in two groups I think, my caches to my desktop. Some of them left it seemed... some stayed? Some may have replaced each other or copied or merged. Honestly, I really don't know. Realizing, with all my programs running and a quick search on whether this is safe at all, that I don't know what I'm doing, I stopped and maybe only deleted one cache thing for an app I don't have anymore.

Now I have these cache folders on my desktop and some seem to have uploaded to the cloud. I have no clue if these will refresh themselves, if they're copies, if I can put them back and pretend this never happened. If anyone has some advice to help me figure out what to do, it would be much appreciated. Thank you.


[Edited by Moderator]

MacBook Air 13″, macOS 11.3

Posted on Jul 19, 2025 10:47 AM

Reply
5 replies

Jul 19, 2025 12:41 PM in response to ihavques

They are all, essentially, junk now.


First off, if they're on your Desktop, they will NOT automatically update. Caches are (usually) written directly to ~/Library/Caches and that's where applications will look and write any new cache data.


Therefore, almost by definition, the backup copy of Caches on your Desktop is already out of date.


Secondly, by their very nature, caches are transitory - they exist as temporary files to save applications from recalculating data (such as search indexes) or redownloading content from the internet.

If an application expects a cache to exist and looks in ~/Library/Caches but doesn't find it, then it's going to recreate that cache file (with a corresponding performance hit while it does so). It will not look to the Desktop (or any other location).


Since the files are already out of date and no application is going to use them as they are, you might as well throw them out. You could try and put them back but, as I said, applications will rebuild them as needed.

Jul 23, 2025 01:50 PM in response to ihavques

> 1- (priority) Emptying my trash seemed to delete over 30,000 items. But it seems to have stopped with message "The operation can’t be completed because the item “Cache_Data” is in use." Should I skip, stop, or continue?


Ultimately, some files might be in use - for example, if you're running an application that's using one of the cache files, it will have a 'handle' to that file which will stick even if the file is moved (say from ~/Library/Caches/ to ~/Desktop). You cannot delete 'open' files that applications are actively using.


In this case, I'd probably opt to skip these files. The Finder should continue to delete the other files. You can then quit the application(s) in question to delete the offending files (or reboot, which forces a release of the lock).


> 2- I'm trying to learn to take better care of my computer. I read that cache naturally clears on sleep mode.


You heard wrong. Sleep does nothing to cache files. You could have a thousand cache files, put your system to sleep for a week, and you'd still have a thousand cache files when you wake it back up. Nothing will affect these files during sleep.


> Is it the same for shutting it off? Clearly I built up a bunch over the years, should I make sure to close programs when I'm done with them?


Closing applications when you're not using them is always a good idea, IMHO.

Ordinarily applications are responsible for managing their cache files. Some applications will clean up their caches when you quit, and if you never quit, these files aren't going to get addressed.

Different applications also manage caches in different ways. For example, an application may limit itself to, say, 1GB of cache data, so as soon as something new is added to the cache that exceeds this limit, it throws away something it no longer needs, typically based on age (oldest item gets purged) or least used (content that hasn't been used/read the longest).

Only the application knows the 'relevance' of any data in the cache, so the OS isn't going to delete them arbitrarily.


> 3- Just to confirm: these caches are temporary to help apps function and go quickly, but don't hold my actual documents. for ex: if i downloaded a picture from the internet, the cache would remember to keep that handy, but if it got cleared i could just redownload it?


Absolutely - a good example of cache files. Nothing critical should be in the cache. If an application expects something to be there ("hmm... I'm pretty sure I downloaded this image before, so it should be in the cache...") but its not there because you manually deleted it, then it would just automatically recreate/redownload it.




Jul 19, 2025 01:03 PM in response to Camelot

Thank you so much for this answer! I threw them out as trying to put them back didn't seem to work when I tried yesterday, and as you said, the apps will rebuild them. Thank you for helping me understand what caches even are and how they work. If it's not too much trouble, I have some follow up questions, just to understand better for the future.


1- (priority) Emptying my trash seemed to delete over 30,000 items. But it seems to have stopped with message "The operation can’t be completed because the item “Cache_Data” is in use." Should I skip, stop, or continue?

2- I'm trying to learn to take better care of my computer. I read that cache naturally clears on sleep mode. Is it the same for shutting it off? Clearly I built up a bunch over the years, should I make sure to close programs when I'm done with them?

3- Just to confirm: these caches are temporary to help apps function and go quickly, but don't hold my actual documents. for ex: if i downloaded a picture from the internet, the cache would remember to keep that handy, but if it got cleared i could just redownload it?

Jul 19, 2025 05:11 PM in response to ihavques

Update to anyone interesting:

I looked up what skip, stop and continue mean and read this (https://apple.stackexchange.com/questions/175010/emptying-trash-with-file-in-use-is-there-any-difference-between-skip-and-co). So I decided to click skip, and I did so a few times for different prompts, as it deleted over 78,000 items and ultimately freed at least 8GB of space on my computer. There was still some of those desktop cache left in the trash as a result (seemingly only for google chrome? which is the browser I use and am now using). So I tried to empty it again, on the basis that the caches from desktop are no good now anyway, and skipping when prompted. It mostly prompts because one of the cache folders>google>chrome>etc stuff is in use, so I skip all those prompts and I'm left with them in the trash. However, it also said it deleted several items. I emptied it a third time and now it is empty. If there's some insight about caches/trash to be gained, do let me know as I'm trying to understand caches and all tech stuff deeper. I wouldn't have minded if it sat in my trash, but I guess it just needed to delete a bit at a time? Thanks for your time.

Cache on desktop mistake

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