Disable "Optimized Storage" popup

Hi, how can I disable this popup?

User uploaded fileUser uploaded file

Please, no tutorials on how to use the optimize tools - or lectures on disk space. 😉

Thank you.

MacBook Pro with Retina display, macOS Sierra (10.12.2)

Posted on Dec 15, 2016 7:24 AM

Reply
Question marked as Top-ranking reply

Posted on May 5, 2017 11:56 AM

The solution to disabling the notification is to disable the daemon responsible for it:

launchctl unload -w /System/Library/LaunchAgents/com.apple.diskspaced.plist


Alternatively, you can customise the number of GB free before the alert appears via:

minFreeSpace (int) - minimal free size in GB. Default: 20


In my case I wanted to change it to 10GB, so:

defaults write com.apple.diskspaced minFreeSpace 10 launchctl unload -w /System/Library/LaunchAgents/com.apple.diskspaced.plist launchctl load -w /System/Library/LaunchAgents/com.apple.diskspaced.plist

The daemon has to be reloaded because it only reads its settings upon start up.


In case you are interested in the other preferences for these disk alerts you can view some of them using the help param:

/System/Library/PrivateFrameworks/StorageManagement.framework/Versions/A/Resources/diskspaced help

--- Domain: com.apple.diskspaced

Supported keys:

debugLog (BOOL) - log additional debug information. Default: NO

checkAllVolumes (BOOL) - check all volumes. Default: NO

minDiskSize (int) - minimal disk size in GB. Default: 128

minFreeSpace (int) - minimal free size in GB. Default: 20

minPurgeableSpace (int) - minimal purgeabe space size in GB. Default: 20

--- Commands:

removeAllNotifications - Removes all scheduled and delivered user notificiations.


And here are a couple of hidden ones:

warningInterval (integer default 0)

lastWarningDate (string e.g. 2017-05-05 16:48:29 +0000)

I didn't experiment with changing these but it is possible setting the last warning date to a date in the future would prevent any alerts displaying.

9 replies
Question marked as Top-ranking reply

May 5, 2017 11:56 AM in response to dwb

The solution to disabling the notification is to disable the daemon responsible for it:

launchctl unload -w /System/Library/LaunchAgents/com.apple.diskspaced.plist


Alternatively, you can customise the number of GB free before the alert appears via:

minFreeSpace (int) - minimal free size in GB. Default: 20


In my case I wanted to change it to 10GB, so:

defaults write com.apple.diskspaced minFreeSpace 10 launchctl unload -w /System/Library/LaunchAgents/com.apple.diskspaced.plist launchctl load -w /System/Library/LaunchAgents/com.apple.diskspaced.plist

The daemon has to be reloaded because it only reads its settings upon start up.


In case you are interested in the other preferences for these disk alerts you can view some of them using the help param:

/System/Library/PrivateFrameworks/StorageManagement.framework/Versions/A/Resources/diskspaced help

--- Domain: com.apple.diskspaced

Supported keys:

debugLog (BOOL) - log additional debug information. Default: NO

checkAllVolumes (BOOL) - check all volumes. Default: NO

minDiskSize (int) - minimal disk size in GB. Default: 128

minFreeSpace (int) - minimal free size in GB. Default: 20

minPurgeableSpace (int) - minimal purgeabe space size in GB. Default: 20

--- Commands:

removeAllNotifications - Removes all scheduled and delivered user notificiations.


And here are a couple of hidden ones:

warningInterval (integer default 0)

lastWarningDate (string e.g. 2017-05-05 16:48:29 +0000)

I didn't experiment with changing these but it is possible setting the last warning date to a date in the future would prevent any alerts displaying.

May 6, 2017 8:51 PM in response to jkingx

Click on Manage : When you sign up for iCloud, you automatically get 5 GB of free storage. Your iCloud storage is used for documents stored in iCloud Drive, iCloud Photo Library, iOS device backups, messages and attachments in iCloud Mail (your @icloud.com email account), and more. If you run out of space, you can upgrade your storage. You can also remove stored items to make more space available.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disable "Optimized Storage" popup

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