How to Fix Exchange IMAP Migration Batch Stuck in Removing State
Question details
The user is unable to delete an IMAP migration batch, which is stuck with pending mailboxes and cannot be cleared using standard tools.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- Attempting to remove an Exchange IMAP migration batch via the Exchange admin center or PowerShell.
- Observed behavior
- The migration batch remains stuck in the Removing state. PowerShell commands like Remove-MigrationBatch fail and return a MigrationPermanentException error.
Ensure you have global administrator or Exchange administrator privileges, and verify your connection to the Microsoft 365 admin center before troubleshooting.
Check Microsoft Service Health and Await Deployment
Use this solution first, as the issue is typically caused by a known Microsoft service regression affecting Mailbox Replication Service API calls.
When a service regression occurs on Microsoft's backend, API calls may return incorrect results, preventing migration batches from completing their removal process. In this state, local administrator commands will not work until Microsoft resolves the infrastructure issue.
Navigate to the Microsoft 365 Admin Center using your administrator credentials.
Click on 'Health' in the left-hand menu, then select 'Service health'.
Look for any active advisories or incidents related to Exchange Online, specifically mentioning IMAP migrations or Mailbox Replication Services.
Wait for Microsoft to deploy the fix to the affected infrastructure. Once resolved, the batch should automatically clear from the Removing state.

Contact Microsoft Support for Stuck Batches
If the global service incident is marked as resolved but your migration batch remains stuck in the Removing state.
Boost Your Productivity with WPS Office
While waiting for Microsoft to resolve Exchange migration issues on their backend, ensure your team stays productive with WPS Office. It is a highly compatible, free, and lightweight office suite that handles all your daily document needs without relying on expensive cloud subscriptions.
- 1. Download the Installer: Visit the official WPS Office website and download the setup file for your PC or Mac.
- 2. Install WPS Office: Run the installer and follow the quick setup wizard to install the software in minutes.
- 3. Open Your Files: Launch WPS Office and open your existing Microsoft Office documents without losing any formatting.

Frequently Asked Questions
Why does Remove-MigrationBatch return a MigrationPermanentException?
This exception usually occurs when backend services, such as the Mailbox Replication Service API, return incorrect data or experience a regression. It prevents the PowerShell command from successfully modifying or deleting the batch state.
How long should an IMAP migration batch stay in the Removing state?
Under normal conditions, an IMAP migration batch takes only a few minutes to be removed. If it remains in this state for several hours, it is likely stuck due to pending mailboxes or a service disruption.
Can I start a new migration batch while the old one is stuck?
It is not recommended to start a new migration batch for the same users if their previous batch is still stuck. Overlapping mailboxes can cause conflicts, duplicated emails, or further migration errors.




