logo
search
Compliance Problems

How to Fix Deleted User Still Appearing in Microsoft Purview Content Search

Khadija KhanKhadija Khan Sep 30, 2026 868 views

Question details

The user needs to remove a deleted user account that is still displaying in Microsoft Purview Content Search or eDiscovery even after a year and without any litigation holds.

Fix: Deleted User Still Appears in Microsoft Purview Content Search
Product
Microsoft Purview / Microsoft 365
Device & OS
not provided
Scenario
Managing compliance and eDiscovery searches in Microsoft 365.
Observed behavior
Deleted users still appear in the inactive-user list in Microsoft Purview Content Search, despite being removed from Azure AD, Microsoft 365, and having no active holds.
Before you start

Ensure you have global administrator or eDiscovery administrator privileges in your Microsoft 365 tenant, and verify that the user does not have any active retention policies or litigation holds applied.

Solution 1Recommended

Permanently Remove the User from the Directory Recycle Bin via PowerShell

Use the Microsoft directory PowerShell module to ensure the user is completely purged from the recycle bin.

Often, a deleted user remains visible because the account is still sitting in the directory recycle bin. Permanently purging the user using PowerShell can force an update across compliance services.

1
Open PowerShell

Launch PowerShell as an Administrator on your computer.

2
Connect to Microsoft Online

Run the appropriate connection cmdlet (such as Connect-MsolService) and log in with your administrator credentials.

3
Remove from Recycle Bin

Run the command: Remove-MsolUser -UserPrincipalName user@domain.com -RemoveFromRecycleBin.

4
Wait for Synchronization

Allow up to 24 hours for the changes to sync across Microsoft 365 services, including Microsoft Purview.

Permanently Remove the User from the Directory Recycle Bin via PowerShell
PowerShell Verification: If PowerShell reports that the account does not exist, the user has already been purged from the recycle bin. In this case, proceed to contact Microsoft Support.
Free Microsoft Office alternative

Looking for a Lightweight Alternative to Microsoft Office?

While enterprise compliance issues require Microsoft backend support, your daily document tasks don't have to be complicated. WPS Office provides a free, highly compatible, and lightweight alternative for creating and editing Word, Excel, and PowerPoint files without the heavy enterprise overhead.

Free to use with a familiar, intuitive user interface.Seamlessly compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight application that runs smoothly on Windows, Mac, and Linux.Built-in PDF editing and powerful cloud collaboration tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why do deleted users still show up in Microsoft Purview searches?

Users can remain visible if they are in the directory's recycle bin, if a litigation hold or retention policy was applied before deletion, or due to a backend synchronization delay in Microsoft 365.

How can I check if a deleted user still has a litigation hold?

You can use Exchange Online PowerShell to run the 'Get-Mailbox' cmdlet with the '-InactiveMailboxOnly' parameter to view active holds on inactive mailboxes.

How long does a deleted user stay in the Microsoft 365 recycle bin?

By default, deleted user accounts are retained in the Azure Active Directory recycle bin for 30 days before they are permanently deleted.

Does removing a user's license automatically remove them from Purview eDiscovery?

No. Removing a license simply disables access to the service. To remove them from eDiscovery entirely, all retention holds must be removed, and the account must be permanently deleted and purged.