logo
search
Microsoft 365 Error Codes

How to Delete Exchange Public Folders When Admin Center Fails

Olivia MillerOlivia Miller Oct 12, 2026 868 views

Question details

The user needs to delete secondary, non-mail-enabled Exchange public folders, but the Exchange Admin Center is failing with an error.

How to Delete Exchange Public Folders When Admin Center Fails
Product
Microsoft Exchange
Device & OS
not provided
Scenario
Attempting to manage and remove secondary public folders through the web interface.
Observed behavior
The Exchange admin center returns an HTTP 500 or NullReferenceException error, preventing the folder deletion.
Before you start

Ensure you have Exchange Administrator privileges and the Exchange Online PowerShell module installed before attempting to remove public folders via the command line.

Solution 1Recommended

Use the Remove-PublicFolder PowerShell Command

Bypass the web interface by utilizing Exchange Online PowerShell to forcefully remove the public folder.

When the graphical Exchange Admin Center fails due to backend sync issues or HTTP 500 errors, PowerShell often bypasses these frontend limitations and interacts directly with the directory.

1
Connect to Exchange Online

Open Windows PowerShell as an administrator and run the command 'Connect-ExchangeOnline' to authenticate with your tenant administrator credentials.

2
Execute the removal command

Type the command 'Remove-PublicFolder -Identity "\YourFolderName"' (replacing YourFolderName with your target folder's path) and press Enter.

3
Confirm the deletion

When prompted by the PowerShell console, type 'Y' to confirm the permanent removal of the public folder.

Use the Remove-PublicFolder PowerShell Command
Mail-Enabled Folders: If the folder is mail-enabled, you must run the 'Disable-MailPublicFolder' command before attempting to delete it.
Free Microsoft Office alternative

Looking for a Lightweight, Reliable Office Suite?

Dealing with complex administrative centers and backend server errors can be frustrating. If you are looking for a streamlined, fast, and free alternative to Microsoft Office for your everyday document processing, WPS Office provides a seamless and hassle-free experience.

  1. 1. Download the installer: Visit the official WPS website and click the download button to get the free installer for your system.
  2. 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the lightweight suite.
  3. 3. Open your files: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office documents.
Highly compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that avoids complex server configurations or cloud sync errors.Familiar, user-friendly interface that requires zero learning curve for seamless migration.Completely free to use with built-in PDF editing and local file management tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get an HTTP 500 error when deleting public folders in Exchange?

This error typically occurs due to backend server synchronization issues, corrupted folder metadata, or temporary outages within the Microsoft 365 Exchange Admin Center web interface.

Can I delete a public folder if it contains subfolders?

To delete a parent public folder, you must either delete all of its subfolders first or use the '-Recurse' parameter in your PowerShell removal command.

What does a NullReferenceException mean in Exchange PowerShell?

A NullReferenceException indicates that the Exchange server is attempting to process a directory object (like your public folder) that cannot be found or is in an inconsistent database state. This usually requires Microsoft Support to fix the corrupted entry from the backend.