Remove-MsolContact cmdlet in PowerShell removes a contact from Microsoft Office 365. Contacts can represent the external individuals or entities that your organization communicates with or tracks in Office 365.
The syntax to delete a contact from Azure Active Directory is given below.
Remove-MsolContact -ObjectId <Guid> [-Force] [-TenantId <Guid>] [<CommonParameters>]
In this article, we will discuss how to use the Remove-MsolContact cmdlet in PowerShell to remove a contact from Office 365.
How to Remove a Contact from Office 365
To remove a contact from Office 365 with PowerShell, use the Remove-MsolContact command.
# Delete a contact Remove-MsolContact -ObjectId 74b30b26-ee5e-478c-8346-641fcf094fb1 -Force
The Remove-MsolContact command in PowerShell uses the
-ObjectId parameter to specify the unique ID of the contact to remove. The
-Force parameter indicates that this command doesn’t prompt you for confirmation.
I hope the above article on how to use Remove-MsolContact to delete a contact from Azure Active Directory is helpful to you.