How to Fix Deleted User Still Appearing in Microsoft Purview Content Search
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.

- 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.
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.
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.
Launch PowerShell as an Administrator on your computer.
Run the appropriate connection cmdlet (such as Connect-MsolService) and log in with your administrator credentials.
Run the command: Remove-MsolUser -UserPrincipalName user@domain.com -RemoveFromRecycleBin.
Allow up to 24 hours for the changes to sync across Microsoft 365 services, including Microsoft Purview.

Escalate to Microsoft 365 Support for Backend Investigation
If the account is fully deleted from Azure and Active Directory but still appears in Purview, Microsoft engineers must clear it from the backend.
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.

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.




