How to Remove a Deleted Shared Mailbox from Outlook Auto-Configuration
Question details
The user needs to stop a previously deleted shared mailbox from continually appearing during Outlook's automatic mailbox setup process.

- Product
- Microsoft Outlook / Exchange Online
- Device & OS
- not provided
- Scenario
- Setting up or reconfiguring mailboxes in Outlook where an old, deleted shared mailbox keeps interfering with the Auto-Configuration process.
- Observed behavior
- A deleted shared mailbox continues to appear in Outlook automatic mailbox setup after conversion and deletion, yet the original mailbox is not visible in standard Exchange Online PowerShell results.
Ensure you have global administrator or Exchange administrator privileges in your Microsoft 365 tenant, and access to the Microsoft Entra ID (Azure AD) admin center.
Permanently Delete the User from Microsoft Entra ID (Azure AD)
This is the most common fix when a shared mailbox has been deleted but its associated user account remains in a "soft-deleted" state in the cloud.
When you delete a shared mailbox, the associated user account is moved to the Azure AD recycle bin for 30 days. Outlook may continue to pull AutoDiscover data for this user until it is permanently purged.
Sign in to the Azure AD Admin Center (Microsoft Entra ID) using your administrator credentials.
Go to 'Users' in the left-hand navigation pane, then select 'Deleted users'.
Search for the associated user account of the deleted shared mailbox.
Select the user account and click 'Delete permanently' to remove all lingering data that Outlook might be detecting.

Verify Mailbox Removal via Exchange PowerShell
Use this solution to confirm whether the mailbox is truly gone from your Exchange environment, especially in hybrid setups.
Exclude Last Known URL in Windows Registry
Use this workaround if the mailbox is completely deleted from the server but the local Outlook client refuses to let go of old AutoDiscover cache.
Experience a Lighter, More Efficient Office Suite with WPS Office
While Exchange server management requires specific Microsoft admin tools, everyday document, spreadsheet, and presentation tasks don't have to be tied to heavy, expensive software. WPS Office provides a seamless, free alternative to Microsoft Office for your daily productivity needs.

Frequently Asked Questions
Why does a deleted shared mailbox still show up in Outlook?
Outlook caches AutoDiscover information, and Microsoft Entra ID (Azure AD) retains deleted users in a 'soft-deleted' state for 30 days. Until the user is permanently deleted and the local client cache is cleared, Outlook may still attempt to auto-configure the mailbox.
How long does it take for Exchange Online to clear deleted mailbox data?
By default, soft-deleted mailboxes and their associated user accounts are retained in Azure AD and Exchange Online for 30 days before being permanently and automatically purged by the system.
Can I remove a shared mailbox without deleting the associated user account?
In Microsoft 365 environments, every shared mailbox is tied to a disabled user account. If you want to remove the mailbox completely from the directory and stop AutoDiscover from finding it, you must remove the mailbox and permanently delete the user account from the recycle bin.




