How To Mass Delete Contacts Within the People Tab

Nate 5 Reputation points
2025-10-23T20:39:40.3733333+00:00

I am a Microsoft Admin for a tenant. I have a user with 35 ,000+ contacts from a corrupted migration. Some contacts are phone numbers, while others contain an E-Mail address.

I can't simply "Ctrl + A" & mass delete the contacts (have tried OWA/, Outlook (Classic + New) Desktop App). I can manually delete in batches of 100 but then usually Outlook itself crashes & that isn't feasible.

I've tried using MSGraph & ExchangeOnline + various scripts/commands to attempt to rectify this issue, but nothing seems to stick.

Not really sure where to go from here.

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Teddie-D 7,095 Reputation points Microsoft External Staff Moderator
    2025-10-24T02:23:06.0333333+00:00

    Hi @Nate
    Thank you for posting your question in the Microsoft Q&A forum. 

    We're truly sorry for the difficulty you've encountered while trying to delete multiple contacts, especially after exploring several different methods without success. 

    Since you've already run a number of PowerShell scripts, have you had a chance to try using a CSV file with the following command? 

    Import-Csv C:\contacts.csv | ForEach-Object {Remove-MailContact -Identity $_.Name}
    

    This approach uses the Remove-MailContact cmdlet to remove each contact listed in your CSV file. You can find more details in Remove-MailContact (ExchangePowerShell) | Microsoft Learn

    If you've already tried this and it didn’t work, could you share any error messages or unexpected behavior you encountered? That will help us better understand what’s happening. 

    We appreciate your understanding that sometimes the initial suggestions may not resolve the problem very soon. However, we can work together to narrow down and resolve the situation. So, please kindly provide more information below to let us work further.   

    Thank you again for your cooperation. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  


  2. Nate 5 Reputation points
    2025-10-31T13:07:30.9533333+00:00

    Hi @Teddie-D

    I've only gotten a chance to try out MFCMAPI, I got that to detect the Outlook profile, when I empty folder w/ hard deletion check it errors out (see screenshot attached).

    I'd rather go with this approach, as I'd allow me to do this in various situations fairly quickly without the need of Global Admin perms.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.