So I am trying to silence the "Your Disk is Almost Full" notification from a mac running Mojave, as right now it pops up way too frequently and it is so annoying.

I followed all answers from this thread but none of them work with Mojave.

However, I made some progress as @kenorb's answer includes this command:

grep -A6 debugLog <(strings $(find /System/Library/PrivateFrameworks -name diskspaced -print -quit))

which does give some insight into how things have changed, as when I run a modified version of it, I get this:

MacBook-Pro-7:~ QH$ grep -A15 debugLog <(strings $(find /System/Library/PrivateFrameworks -name diskspaced -print -quit))

debugLog (BOOL) - log additional debug information. Default: NO
removeAllNotifications - Removes all scheduled and delivered user notificiations.
Ignoring low disk notification during migration.
Low space alert: %@ free on '%@'
Unknown command
peer error: %s
unexpected peer event
Interval since system update :%f

Now I don't understand much about that command or macOS daemons at all, but it seems to me that the lowSpaceTimer or setLowSpaceTimer: might be the key to fixing things. If I can get access to one of them, and set the timer to be something high enough, I will finally get some closure on that annoying pop up. The thing is... I have no idea how to access it.

I've tried:

defaults read lowSpaceTimer

defaults read com.apple.diskspaced lowSpaceTimer

defaults read com.apple.diskspaced (this outputs the minFreeSpace k-v entry I wrote while trying to get it to work, but does nothing to help things as minFreeSpace is obsolete)

Right now the popup shows up once every 6 minutes and it's driving me insane when I try to get work done.

  • 2
    I have 15 GB free on my laptop. If the oil light in my car is faulty, and I can't fix it (set the threshold to lower as in the linked thread), I might as well turn it off. Nov 14, 2018 at 19:52
  • 2
    Ok, so I have 128GB's of storage on my laptop. I always operate on 10-15 GB's of free space. I have a lot of applications/files that are critical to my daily functions that I can't remove. Is this a good setup? no. Can I fix it? not realistically, no. Have I been working with this setup for the past 4 years? Yes. I clear my browser's cache and file system regularly but the best I can practically have is 15GBs free. As much as I understand and appreciate your advice, I know what I'm doing. I just want that popup to stop showing up. Nov 14, 2018 at 20:10
  • 2
    What if you try: defaults write com.apple.diskspaced removeAllNotifications?
    – kenorb
    Nov 14, 2018 at 20:20
  • 1
    This expects a boolean, so please try, defaults write com.apple.diskspaced removeAllNotifications true, this worked for me in Mojave (july 2019), then if you'll need to know which value is been set, then do defaults read com.apple.diskspaced removeAllNotifications
    – ximbal
    Jul 18, 2019 at 11:04
  • 1
    15GB is not "in danger of seizing the engine altogether." 15GB is enough to synthesize English with an Indian accent (Veena) and (generate story prompts with the BookCorps GPT language model)[resources.wolframcloud.com/NeuralNetRepository/resources/…, and still have 10GB left. Sure, Office 365, the Xcode suite, and a few projects' build artifacts might be 200GB total, but your computer is entirely usable with 15GB of free disk space. Just mount an external disk and build your projects there if you need it. Jul 27, 2019 at 22:09

3 Answers 3


It's most likely not the answer that you're looking for, but suddenly I discovered a simple and trivial thing - "do not disturb" mode silences that notification, along with all the others of course...

I know that it's not a proper solution, but I'll stick with it by now. How could I've been so blind :D

  • 1
    Yeah, I use do not disturb when I need to focus and it keeps popping up. The problem is that the other notifications are actually important and relevant. You can toggle Do Not Disturb by alt-clicking on the notification center symbol on the top right of the menu bar by the way Dec 5, 2018 at 15:52
  • Worked for my purposes. Got to notification center and click the slider.
    – Ligemer
    May 3, 2019 at 18:33

Try the following command:

defaults write com.apple.diskspaced removeAllNotifications -bool true
  • Nope. Does not work on Mojave 10.14 Dec 30, 2018 at 1:41

defaults read com.apple.diskspaced yields:

     checkAllVolumes = 0;
     debugLog = 1;
     freeSpaceWarningLevel = 4;
     minFreeSpace = 4;
     removeAllNotifications = 0;
     warningInterval = 3600;

Now you can change it with, say, defaults write com.apple.diskspaced freeSpaceWarningLevel 1, and restart: killall diskspaced.

  • 1
    Mine yields this and I still get the damn notification: { lastWarningDate = "2018-10-11 20:54:07 +0000"; minFreeSpace = 2; removeAllNotifications = 1; } Note how the lastWarningDate is very old, but I got a notification one minute ago. Jul 17, 2019 at 13:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .