3652 Keyboard Maestro folders

I ran out of space on my SSD and was forced to clean things up. While doing so I bumped into a large amount of folders at this directory:

/private/var/folders/zs/g5rytk3903s5gqpn4kxkyls80000gn/T/

I have a couple of questions:

  1. Can I delete these folders? I know they take zero space but still just curious.

  2. What are these folders for?

  3. Assuming there's not need for all those folders, would it be possible to have KM purge them in a future update?

Thanks!

I found a detailed explanation of that folder here:

http://www.magnusviri.com/Mac/what-is-var-folders.html

Apparently the files are NOT created by KM, so it's really a macOS working folder. I haven't read the whole page yet so I don't know if it's safe to delete anything there. But there's a lead for you. It sounds like it's just a cache but macOS will continue to recreate caches at its leisure and there's no way KM should be searching through file system caches to delete things like that.

I think macOS provides several choices for different kinds of filesystems. It may be possible to reformat the drive choose a different filesystem that doesn't cache files, if you need the space, but most likely that will make the filesystem run slower.

Here are your choices for a filesystem: (which one are you currently using? I have similar files on my iMac and I'm using APFS.)

If you switch to a lower performance drive format you might be able to save a gigabyte. My cache appears to be about 1 Gig.

I skimmed through the article. It's interesting but a lot of it is hardcore geek stuff which I don't understand.

However, the article seems to imply that those 3652 folders will eventually delete themselves. We'll see...

Also interesting is that there are some files in there which if deleted will prevent your system from booting!

I'm using APFS and my "T" folder was over 12 GB but now it's only 1.44 GB because I just deleted a 10 GB video file courtesy of my Screenflow software!

Thanks

You didn't indicate which folder you delete the large file from. If you deleted the 10 GB file from one of the /private subfolders, you are tampering with the macOS filesystem cache folders. It might be risky. But probably not.

Hi Sleepy, No worries, the large file I deleted was inside the "T" folder and I was sure it belonged to Screenflow (my screen recording software). I know this because I read so on their support forum.

Oh, I guess you did indicate the folder. I'm not perfect! I miss things!

Yes, but why bother since they occupy no space?

Most likely temp storage of some sort, that KM, or Apple, failed to clean up after itself.
I'm sure @peternlewis can provide more accurate info.

Again, why bother? But if you must, then yes, just create a macro with a periodic trigger that deletes these folders.

I don't know about you, but I have bigger fish to fry. :wink: