MacOS – Is it safe to delete the com.apple.appstore folder? It takes up 80gb on the 256gb hard drive

disk-spacefindermacos

Is it safe to delete this folder? From what I've read, it just holds App Store cache. I'm running really low on disk space, and this folder is massive.

Edit:
The filepath is: Macintosh HD/private/var/folders/bw/0tlgj1q56zs3msbssd_w4jv40000gn/C/com.apple.appstore

All the folders inside of it contain a package and a file called preflight.pfpkg.

Edit 2: I took a closer look at the packages inside and it looks like they're all Xcode installers, like every single one of them. I made a Time Machine backup in case something went wrong, but so far it's been smooth sailing.

Best Answer

It’s safe to delete just about anything as long as you:

  1. Have a backup and know how to restore things.
  2. Have internet recovery so if you break things, you can reinstall macOS.

Since you know where that folder is located, it’s best to give a general answer since we can’t guess if that’s something you made, another software made or Apple made.

Then feel free to ask a follow on question if you need help like this and you don’t have good results with a process to reset things:

In my experience, this self-solves by booting to recovery, reinstalling the OS and restarting twice, no need to delete anything at all. (But it’s a pretty rare failure in my experience)