Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can I delete these files?

I wanted to clear out my Mac and noticed all these files taking up a lot of my space. I did not want to touch them unless I knew what they were and got the green light. I used OmniDiskSweeper to uncover these files if anyone was wondering.


Any directions on what to do?

MacBook Air 13″, macOS 10.14

Posted on Jun 30, 2022 1:32 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 30, 2022 4:34 PM

 Rumor has it that one should not delete /private/var/folders/zz. This article implies otherwise, but if you want to be on the safe side, use

cd /private/var/folders
for i in *; do if [ "$i" != "zz" ]; then sudo rm -rf "$i"; fi; done
sudo rm -rf zz/*

instead.


From a general safety for the system integrity viewpoint:

Anything withinin the hierarchy of /private/var/folders/* can be deleted. zz included.

But a restart should reduce the amount of temporary files and data in there anyway.

Quitting well written applications does that too, as should a quick logout-login cycle.

The system will repopulate an empty /private/var/folders/* after it reboots.

From a practicality and consequences for the users viewpoint:

There is a small catch: it is probably not completely without side-effects to just wipe all and anything under folders there.

Although theses side-effects are few. Force deleting everything with sudo rm is possible but not the best option on a live system.

  1. Some of those files might be currently in use. Thus making it difficult or unwise to just delete them all from a running system if one feels the need for that. You'd have to quit the processes using them first. This quitting the process is in itself, as stated above, often enough to have those files removed automatically. If some databases, mainly generated by Apple processes, grow out of hand it might be necessary to move them to the trash, logout-login and then delete them.
  2. A small number of applications or services may store some of the preferences there.
  3. One example is NotificationCenter (NC) with your settings in there: your choice of applications and what of them to be 'in' there. NC rebuilds its preferences with everything in NC enabled. If you have many Apps and prefer most of them to not disturb you this is quite annoying even if only done once.
  4. But then it is not really essential data that gets lost in this way. Since this practice is highly non-standard, it looks only Apple violates its own guidelines: I can't remember any third-party application storing important, not-supposed to be volatile, and non-temporary data in this hierarchy.

Conclusio:

Therefore it is best to locate which of these folders belongs to your most active user, go in there and look for the biggest offenders to delete them manually. It is also prudent to learn which of your apps leave so much stuff behind. Quitting and restarting an actively cluttering app might often be enough to gain some space there. If the second catch is of concern, spare those files related to e.g. NC from deletion.


On Catalina, I have restarted my Macbook in recovery mode (CMD+R at startup). Then, I have opened the terminal to disable the system integrity protection by typing csrutil disable. Then, I restarted in normal mode. I closed all applications. I ran disk utility and clicked on first aid for my system drive.

Then, I went to /private/var/folders/. It is now 2019 and I have found that some folders weren't modified since 2016 and 2017.

Then, I copied the zz folder content to a USB drive. I went to the zz folder and I deleted all the folders that were not from today. I went to the kt folder, I copied the content in my USB drive and I deleted the folders that were not from today inside the folders 0 and C and T. Before restarting I emptied the trash bin.

I unplugged my USB drive and I restarted in recovery mode, I re activated the system integrity protection, by typing csrutil enable in the terminal and that's it.

I saved 50GB

Apple - Can I delete files or folders from /private/var/folders/? (newbedev.com)


Not too much to worry about the ones in your Home Folder then... ~/Library/private/var/folders/zz/ I think.

9 replies
Question marked as Top-ranking reply

Jun 30, 2022 4:34 PM in response to Yas_mini

 Rumor has it that one should not delete /private/var/folders/zz. This article implies otherwise, but if you want to be on the safe side, use

cd /private/var/folders
for i in *; do if [ "$i" != "zz" ]; then sudo rm -rf "$i"; fi; done
sudo rm -rf zz/*

instead.


From a general safety for the system integrity viewpoint:

Anything withinin the hierarchy of /private/var/folders/* can be deleted. zz included.

But a restart should reduce the amount of temporary files and data in there anyway.

Quitting well written applications does that too, as should a quick logout-login cycle.

The system will repopulate an empty /private/var/folders/* after it reboots.

From a practicality and consequences for the users viewpoint:

There is a small catch: it is probably not completely without side-effects to just wipe all and anything under folders there.

Although theses side-effects are few. Force deleting everything with sudo rm is possible but not the best option on a live system.

  1. Some of those files might be currently in use. Thus making it difficult or unwise to just delete them all from a running system if one feels the need for that. You'd have to quit the processes using them first. This quitting the process is in itself, as stated above, often enough to have those files removed automatically. If some databases, mainly generated by Apple processes, grow out of hand it might be necessary to move them to the trash, logout-login and then delete them.
  2. A small number of applications or services may store some of the preferences there.
  3. One example is NotificationCenter (NC) with your settings in there: your choice of applications and what of them to be 'in' there. NC rebuilds its preferences with everything in NC enabled. If you have many Apps and prefer most of them to not disturb you this is quite annoying even if only done once.
  4. But then it is not really essential data that gets lost in this way. Since this practice is highly non-standard, it looks only Apple violates its own guidelines: I can't remember any third-party application storing important, not-supposed to be volatile, and non-temporary data in this hierarchy.

Conclusio:

Therefore it is best to locate which of these folders belongs to your most active user, go in there and look for the biggest offenders to delete them manually. It is also prudent to learn which of your apps leave so much stuff behind. Quitting and restarting an actively cluttering app might often be enough to gain some space there. If the second catch is of concern, spare those files related to e.g. NC from deletion.


On Catalina, I have restarted my Macbook in recovery mode (CMD+R at startup). Then, I have opened the terminal to disable the system integrity protection by typing csrutil disable. Then, I restarted in normal mode. I closed all applications. I ran disk utility and clicked on first aid for my system drive.

Then, I went to /private/var/folders/. It is now 2019 and I have found that some folders weren't modified since 2016 and 2017.

Then, I copied the zz folder content to a USB drive. I went to the zz folder and I deleted all the folders that were not from today. I went to the kt folder, I copied the content in my USB drive and I deleted the folders that were not from today inside the folders 0 and C and T. Before restarting I emptied the trash bin.

I unplugged my USB drive and I restarted in recovery mode, I re activated the system integrity protection, by typing csrutil enable in the terminal and that's it.

I saved 50GB

Apple - Can I delete files or folders from /private/var/folders/? (newbedev.com)


Not too much to worry about the ones in your Home Folder then... ~/Library/private/var/folders/zz/ I think.

Jun 30, 2022 3:09 PM in response to Yas_mini

Howdy,


Can you tell us where those files are located? The file path(s).


I have not been able to find those files on either of my Mojave Macs.


There are a few things that indicate those files can be deleted but it would be good to know where they are.

  1. They are huge, which makes them look like some kind of cache file or something, not a regular application or data file.
  2. They have the name "Download" in them, implying they are downloads of some sort, not something that came with the system or was created by you.
  3. They end in .tmp which says they are temporary files.

See .TMP File Extension


Note if a program or your computer crashed while a normal .tmp file was open, the .tmp file may not have automatically been deleted as it should be. If that happens regularly you can accumulate a bunch of "bogus" .tmp files. Have you had programs crashing?


ivan

Jul 2, 2022 3:24 PM in response to Yas_mini

Howdy,


BDAqua brings up a good point. If you want to be safe about deleting the files,

back some or all of them up to a different drive,

delete the ones that are backed up and use the system.

If all is good then you could delete the backups and recover that space too.

If not, you could restore the files.


I still couldn't find CFNetworkDownload…tmp files on my system.


Take care,

ivan

Can I delete these files?

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