How iCloud Mail Automatic Cleanup Works (and Its Risks)

The short answer
iCloud Mail's automatic cleanup permanently deletes messages from your Junk and Trash folders after a set period — typically 30 days — to free iCloud storage. It does not touch your inbox or other folders. To turn it off, go to Mail settings on your device and set the cleanup period to Never.
iCloud Mail's automatic cleanup permanently deletes Junk and Trash after 30 days. Here's what it targets, how to turn it off, and when to keep it on.
On this page
People first notice it when they open Trash to retrieve something and it is gone. No manual deletion, no bulk-select, no emptying — the messages simply stopped being there. iCloud Mail's automatic cleanup feature quietly removes old messages from your Junk and Trash folders on a timer, and because the default period is usually one month and the setting is buried several menus deep, most users discover it only after a deletion they did not plan.
The feature exists for a good reason. Junk and Trash accumulate indefinitely if nothing clears them, and iCloud's free storage tier is 5 GB — a limit that fills faster than most people expect. Old spam and discarded drafts can quietly consume gigabytes over months. Automatic cleanup stops that from happening without any manual effort. But the trade-off is real: when the timer runs, the deletion is permanent. There is no recycle bin, no undo, no recovery window. A message deleted on day 30 is gone.
This article covers exactly what the automatic cleanup setting targets and what it leaves alone, how to adjust or disable it across iPhone, Mac, and iCloud.com, how to find the setting when it is in a different place on older operating systems, and what to do if the setting appears to have no effect. If you landed here because messages disappeared unexpectedly, you will understand why by the end of the second section.
Before you start: what the automatic cleanup setting actually covers#
iCloud Mail's automatic cleanup operates only on two mailboxes: Junk and Trash. It does nothing to your inbox, Sent, Drafts, or any custom folder you have created. The setting controls how long messages can remain in those two folders before iCloud permanently deletes them. Once the period expires, the deletion happens server-side and is irreversible.
The available periods vary slightly by platform, but across iOS, macOS, and iCloud.com the options are typically one week, one month, one year, and never. The factory default on most iCloud accounts is one month for both Trash and Junk. Apple introduced granular control over this setting in iOS 16 and macOS Ventura — on earlier versions the option exists but appears in a different location, which is covered in the steps below.
One distinction that surprises people: this setting is separate from the global iCloud storage management options in your device settings. You are not changing how iCloud Drive stores files or how iCloud Photos uses quota — you are setting a per-folder expiry rule for mail only. Similarly, if you have multiple accounts set up in the Mail app (Gmail, Outlook, a work IMAP address alongside your iCloud account), the cleanup setting applies only to the iCloud Mail account. Other providers manage Trash expiry independently through their own settings.
Automatic cleanup deletes permanently
How to use automatic cleanup in iCloud Mail: step-by-step#
The setting lives in different places depending on whether you access your mail on an iPhone, a Mac, or iCloud.com. The steps below cover all three. Make the change on the device where you primarily read mail — the preference syncs to iCloud and propagates to your other devices within a few minutes.
- 1
iPhone or iPad (iOS 16 and later)
Open Settings, tap your name at the top, then tap iCloud. Scroll down and tap iCloud Mail. Under Mailbox Behaviors, tap Trash Mailbox, then Remove Deleted Messages, and choose your period: after one week, after one month, after one year, or never. Go back and repeat for Junk: tap Junk Mailbox, then Remove Junk Messages, and choose the same period.
- 2
iPhone or iPad (iOS 15 and earlier)
Open Settings, tap Mail, tap Accounts, select your iCloud account, tap Account, then tap Advanced. Under Mailbox Behaviors you will find Remove Deleted Messages. Set it to the period you want. Junk cleanup on older iOS is handled server-side and may not have a separate per-device control.
- 3
Mac (macOS Ventura 13 and later)
Open Mail, then go to Mail > Settings in the menu bar. Click Accounts, select your iCloud account in the left column, then click the Mailbox Behaviors tab. Under Trash Mailbox, use the Erase Deleted Messages drop-down to set your period. Under Junk Mailbox, use Erase Junk Messages to set the same. On macOS Monterey and earlier the menu reads Mail > Preferences rather than Settings; the Accounts tab and Mailbox Behaviors sub-tab are in the same location.
- 4
iCloud.com
Sign in at icloud.com and open Mail. Click the gear icon in the lower-left corner of the sidebar and choose Settings. In the settings panel, look for the Junk and Trash cleanup options — the exact label varies by region but typically appears under a General or Composing section. Set your preferred period and save. Changes made on iCloud.com sync back to your devices.
- 5
Verify the change took effect
Wait five minutes, then open Trash in the Mail app and confirm that older messages are still present if you set the period to Never, or have been removed if you confirmed a shorter period. If the setting does not seem to take effect, sign out of iCloud on the device and sign back in — this forces a full settings sync.
Automatic cleanup settings across platforms at a glance#
The cleanup options are available on every major iCloud Mail surface, but the labels and navigation paths differ enough that the same setting can look like a different feature on each device. The table below maps the key details so you can find the right control wherever you are.

| Platform | Minimum OS | Navigation path | Periods available |
|---|---|---|---|
| iPhone / iPad (current) | iOS 16 | Settings > [your name] > iCloud > iCloud Mail > Mailbox Behaviors | After one week, after one month, after one year, never |
| iPhone / iPad (older) | iOS 15 and earlier | Settings > Mail > Accounts > [iCloud] > Account > Advanced | After one week, after one month, after one year, never |
| Mac | macOS Monterey 12 | Mail > Settings (or Preferences) > Accounts > [iCloud] > Mailbox Behaviors | After one day, after one week, after one month, after one year, never |
| iCloud.com | Any modern browser | Mail > Settings gear > General / Composing section | After one week, after one month, after one year, never |
What to do when the cleanup setting does not work#
The most common reason the setting appears to have no effect is a sync delay. After changing the cleanup period, iCloud can take several minutes to propagate the preference to your other devices and apply it server-side. Wait five to ten minutes and check again before assuming something is broken.
A second cause is multiple iCloud accounts. If you have more than one iCloud address set up in the Mail app — a personal @icloud.com alongside a legacy @me.com or @mac.com address — each account has its own Mailbox Behaviors settings. Changing one does not change the other. Go through each iCloud-type account in the Accounts list and verify the cleanup period individually.
If messages continue to disappear after you set the period to Never, check whether the deletion might be coming from a different source. Some third-party email clients and iCloud.com itself can remove Junk automatically through a setting that is independent of the iOS device preference. Sign in to icloud.com and confirm the cleanup option there also shows Never — the web setting and the device setting can occasionally drift if one update does not sync correctly. Also confirm that no other app or automation has access to your iCloud Mail account with delete permissions.
iCloud.com and device settings can fall out of sync
A faster way to keep your mailbox under control#
Automatic cleanup solves the Junk and Trash accumulation problem specifically, but most iCloud Mail users who are running low on storage are dealing with a broader issue: an inbox that grows faster than any single setting can contain. Manually unsubscribing from mailing lists, archiving old threads, and clearing out accumulations from dozens of senders is work that compounds every week regardless of what the cleanup timer is set to.
AI Emaily is an AI-native email client that works with iCloud Mail alongside Gmail, Outlook, and any IMAP provider. It automatically triages incoming messages, applies labels and archives threads based on rules you set in plain English, and drafts replies in your voice for approval before they send — so the inbox stops growing before it reaches the point where a cleanup setting needs to do the heavy lifting. We build AI Emaily. If the underlying volume is the problem, you can try it free for 7 days at aiemaily.com.
Frequently asked
See it in AI Emaily
Keep reading

Written by
Nafiul HasanNafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.