Outlook on the Web includes a feature called Sweep that helps you manage email clutter by automatically moving, deleting, or blocking messages from specific senders. Many users find their inboxes overwhelmed with newsletters, notifications, and recurring emails that do not require immediate attention. Sweep lets you create rules that clean up these messages without manual sorting every day. This article explains how Sweep works and provides step-by-step instructions to configure folder cleanup rules in Outlook on the Web.
Key Takeaways: Setting Up Sweep Rules in Outlook on the Web
- Sweep button on the toolbar: Select any message from a sender, then click Sweep to create a cleanup rule for all current and future messages from that sender.
- Move messages to a specific folder: Choose the option to move all messages from a sender to a folder you specify, such as a newsletter folder or a low-priority folder.
- Delete or block options: Sweep can delete all messages from a sender or block the sender permanently, which adds the address to your blocked senders list.
How Outlook Sweep Rules Work in Outlook on the Web
Outlook Sweep is a rule-based cleanup tool built into Outlook on the Web. It is not available in the desktop version of Outlook. Sweep works on a per-sender basis. When you apply a Sweep action to a message, Outlook creates a server-side rule that processes all existing and future messages from that sender.
Sweep offers four actions:
- Move all messages from the sender to a selected folder.
- Keep only the latest message and delete older messages from the sender.
- Delete all messages from the sender.
- Block the sender and delete all messages from that sender.
The rule applies to the Inbox folder only. Messages already moved to other folders are not affected. Sweep rules are stored on the Exchange server, so they work whether you access your mailbox from Outlook on the Web, Outlook mobile, or any other email client that connects to your Exchange account.
No prerequisites are needed besides an active Microsoft 365 or Exchange Online mailbox. Sweep is available in all Outlook on the Web versions, including the new and classic layouts.
Steps to Configure a Sweep Rule for Folder Cleanup
- Open Outlook on the Web and select a message
Sign in to your Microsoft 365 account at outlook.office.com. Navigate to your Inbox. Locate a message from the sender you want to create a rule for. Click the message to select it. Do not open the message in a separate window — select it in the message list. - Click the Sweep button on the toolbar
On the toolbar above the message list, click the Sweep button. The icon looks like a broom. If you do not see the Sweep button, click the three-dot More actions menu and select Sweep from the dropdown list. - Choose the Move to folder action
In the Sweep pane that opens on the right side of the screen, you see four options. Select Move all messages from this sender. Below this option, a dropdown menu appears labeled Select a folder. - Select the destination folder
Click the folder dropdown and choose the folder where all messages from this sender should go. If the folder does not exist yet, click New folder at the bottom of the dropdown. Type a folder name, such as Newsletters or Low Priority. The new folder is created under your mailbox root. After selecting or creating the folder, click Save. - Confirm the rule creation
Outlook displays a confirmation message that the Sweep rule has been created. The rule runs immediately on all existing messages from that sender in your Inbox. Future messages from the sender are automatically moved to the selected folder when they arrive.
To verify the rule, go to Settings in Outlook on the Web by clicking the gear icon in the top-right corner. Select View all Outlook settings. Go to Mail > Rules. You see the Sweep rule listed with the sender address and the action Move to folder. You can edit or delete the rule from this page.
Other Sweep Actions for Inbox Cleanup
Keep only the latest message and delete the rest
This action is useful for senders that send frequent updates, such as daily digests or status notifications. When you select this option, Outlook deletes all messages from the sender except the most recent one. The rule runs on a schedule defined by Exchange, typically within a few hours of the rule creation and then periodically. Existing older messages are deleted immediately after you save the rule.
Delete all messages from the sender
This action removes every message from the sender from your Inbox. The messages are moved to the Deleted Items folder. If you want them permanently removed, you must empty the Deleted Items folder separately. This action does not block future messages. The sender can still send new emails, and those are deleted automatically by the rule.
Block the sender and delete all messages
This action adds the sender to your blocked senders list and deletes all existing messages from that sender. Future messages from the blocked sender are rejected at the server level and never reach your Inbox. The sender does not receive a delivery failure notice. To unblock a sender later, go to Settings > Mail > Junk email and remove the address from the Blocked senders list.
Common Issues and Limitations When Using Sweep Rules
Sweep button is missing from the toolbar
If the Sweep button does not appear, you may be using a shared mailbox or a mailbox that does not have an Exchange Online license. Sweep requires an Exchange Online mailbox. For shared mailboxes, you must have Full Access permission and the mailbox must be licensed. Another reason is that your Outlook on the Web session is in a browser that blocks scripting. Try refreshing the page or using a different browser.
Sweep rule does not apply to subfolders
Sweep rules only act on messages in the Inbox. If you have moved messages from the sender to a different folder manually, those messages are not affected by the Sweep rule. The rule only processes messages that arrive in the Inbox after the rule is created and any messages that are currently in the Inbox.
Rule stops working after a mailbox migration
If your mailbox is moved from one Exchange server to another, Sweep rules may be lost. Microsoft does not guarantee that server-side rules survive a migration. After a migration, check your rules in Settings > Mail > Rules. If the Sweep rule is missing, create it again.
Cannot create a Sweep rule for multiple senders at once
Sweep works on one sender at a time. You cannot select multiple messages from different senders and apply one Sweep rule to all of them. You must repeat the process for each sender. If you need a rule that applies to multiple senders or uses conditions like subject keywords, use the Inbox rules feature instead of Sweep.
Sweep Rules vs Inbox Rules: Key Differences
| Item | Sweep Rules | Inbox Rules |
|---|---|---|
| Access location | Sweep button on the toolbar | Settings > Mail > Rules |
| Sender scope | Single sender only | Multiple senders, conditions, and exceptions |
| Actions available | Move, delete, keep latest, block | Move, copy, delete, forward, redirect, flag, and more |
| Rule creation speed | One click from a message | Multiple steps in a form |
| Advanced conditions | None | Subject keywords, attachments, importance, and many others |
Sweep is designed for quick, sender-based cleanup. Inbox rules provide more flexibility and are better for complex scenarios. Use Sweep for simple tasks like moving newsletters to a folder. Use Inbox rules when you need conditions beyond the sender address.
If Sweep Rules Still Do Not Work as Expected
If messages from the sender still land in your Inbox after you create a Sweep rule, check the following items. First, verify that the rule exists in Settings > Mail > Rules. If the rule is missing, create it again. Second, confirm that the sender address in the rule matches exactly the address that the messages come from. Sweep matches the full email address, not just the domain. Third, check if another rule or an add-in is interfering. Disable all other rules temporarily to test. Fourth, ensure that the destination folder is not set to automatically archive or delete messages. A folder policy in the mailbox could override the Sweep rule.
If none of these steps resolve the issue, report the problem to your Microsoft 365 administrator. The administrator can check the Exchange transport rules and mailbox settings that might block server-side rules.
You can now use Sweep to automatically move recurring emails to specific folders, keeping your Inbox clean without manual effort. Try applying the Keep the latest message action for daily digests to reduce clutter further. For more advanced automation, combine Sweep with Inbox rules and Quick Steps in the desktop version of Outlook.