Home > Uncategorized > Enabling the “Remove items from the Trash after 30 days” setting on macOS Sierra

Enabling the “Remove items from the Trash after 30 days” setting on macOS Sierra

A new feature in macOS Sierra is the ability to put items in the Trash and have those items automatically be deleted after 30 days. This option can be set in the Finder preferences using the process shown below:

1. Open the Finder preferences

Screen Shot 2016 10 29 at 9 03 20 PM

2. Select the Advanced options

Screen Shot 2016 10 29 at 9 03 29 PM

Screen Shot 2016 10 29 at 9 03 34 PM

3. Check the Remove items from the Trash after 30 days checkbox.

RemoveTrashAfter30Days

 

It’s also possible to enable or disable this setting from the command line. To enable the Remove items from the Trash after 30 days setting, the following defaults command can run by the logged-in user:

defaults write com.apple.finder FXRemoveOldTrashItems -bool true

Screen Shot 2016 10 29 at 9 04 44 PM

To disable it, the following defaults command can be run by the logged-in user:

defaults write com.apple.finder FXRemoveOldTrashItems -bool false

Screen Shot 2016 10 29 at 9 21 04 PM

For those who want to enable the Remove items from the Trash after 30 days setting using management profiles, I’ve created a .mobileconfig file and posted it here on Github:

https://github.com/rtrouton/profiles/tree/master/RemoveTrashAfter30Days

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: