Others

How to Bulk-Delete Outlook Deleted Items Subfolders using PowerShell

Kushani NimanthikaKushani Nimanthika Oct 28, 2026 868 views

Question details

The user needs a method to bulk-delete hundreds or thousands of deleted subfolders in Outlook to resolve synchronization and performance concerns.

How to Bulk-Delete Outlook Deleted Items Subfolders
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 you start

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.

Solution 1Recommended

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.

1
Visit the Microsoft Q&A Forum

Open your web browser and navigate to the official Microsoft Q&A website, specifically filtering for the 'Exchange Online' or 'Microsoft Graph API' tags.

2
Post Your Script Request

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.

3
Run the Provided Script

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.

Use Microsoft Q&A to Obtain a Custom PowerShell Script
Admin Permissions Required: You must have the 'Organization Management' or specific 'Mailbox Import Export' roles assigned in your Exchange Admin Center to run these administrative scripts successfully.
Free Microsoft Office alternative

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. 1. Visit the WPS Website: Go to the official WPS Office website to access the latest version.
  2. 2. Download the Installer: Click the 'Free Download' button to download the lightweight installation package.
  3. 3. Install and Launch: Run the installer, follow the simple on-screen instructions, and start creating documents immediately.
100% compatible with Microsoft Office formats (Word, Excel, PowerPoint).Lightweight and fast installation without complex server dependencies.Clean, familiar user interface for immediate productivity.Free to use for essential daily tasks without expensive subscriptions.
microsoft office alternative - wps office

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.