How to Bulk-Delete Outlook Deleted Items Subfolders using PowerShell
Question details
The user needs a method to bulk-delete hundreds or thousands of deleted subfolders in Outlook to resolve synchronization and performance concerns.

- Product
- Microsoft Outlook
- Device & OS
- not provided
- Scenario
- Cleaning up an overloaded Exchange mailbox that has accumulated an excessive number of deleted subfolders.
- Observed behavior
- Outlook experiences performance and synchronization issues due to the heavy payload of numerous deleted subfolders in the mailbox hierarchy.
Before running any bulk-deletion scripts, ensure you have Exchange Online Administrator permissions and verify the exact folder paths to avoid deleting active mailbox data.
Use Microsoft Q&A to Obtain a Custom PowerShell Script
Because bulk deletion of subfolders requires specialized scripting via Exchange Online PowerShell or Microsoft Graph API, reaching out to the Microsoft Q&A forum is the official and safest approach to get an up-to-date script.
Microsoft Outlook does not have a native one-click button to recursively bulk-delete specific subfolder trees without affecting other items. Automating this process requires executing a PowerShell script against the Exchange Online environment.
Since script requirements vary based on your tenant's security policies and Exchange version, consulting dedicated Microsoft Exchange engineers is highly recommended.
Open your web browser and navigate to the official Microsoft Q&A website, specifically filtering for the 'Exchange Online' or 'Microsoft Graph API' tags.
Create a new question explaining that your mailbox has accumulated thousands of deleted subfolders and request a PowerShell or Graph API script for bulk removal.
Once an administrator provides the script, open the Exchange Management Shell or connect to Exchange Online via PowerShell, carefully input your mailbox credentials, and execute the script.

Manually Empty the Entire Deleted Items Folder
If you do not have administrative access or scripting knowledge, you can use the Outlook desktop client to empty the entire Deleted Items folder, which will remove all contained subfolders.
Looking for a lightweight, fast document solution?
If dealing with complex Microsoft Office configurations and Exchange server scripts feels overwhelming, consider WPS Office as a free, lightweight, and highly compatible alternative for your daily document productivity needs.
- 1. Visit the WPS Website: Go to the official WPS Office website to access the latest version.
- 2. Download the Installer: Click the 'Free Download' button to download the lightweight installation package.
- 3. Install and Launch: Run the installer, follow the simple on-screen instructions, and start creating documents immediately.

Frequently Asked Questions
Can I bulk-delete Outlook folders without using PowerShell?
Without PowerShell or API scripting, you are limited to manually right-clicking and deleting individual folders, or emptying the entire 'Deleted Items' folder at once via the Outlook desktop client.
Why do too many deleted folders affect Outlook performance?
Outlook synchronizes its entire folder hierarchy with the Exchange server. A massive number of subfolders increases the synchronization payload, leading to high latency, slow startup times, and overall sluggish performance.
Do I need Exchange Admin rights to run bulk deletion scripts?
Yes, modifying mailbox contents programmatically via PowerShell or Microsoft Graph API generally requires Exchange Online Administrator privileges or specific mailbox delegation rights.




