Remove-EntraContact
Removes a contact.
Syntax
Remove-EntraContact
-OrgContactId <String>
[<CommonParameters>]
Description
The Remove-EntraContact
removes a contact from Microsoft Entra ID.
Examples
Example 1: Remove a contact
Connect-Entra -Scopes 'OrgContact.Read.All'
$Contact = Get-EntraContact -Filter "DisplayName eq 'Contoso Contact'"
Remove-EntraContact -OrgContactId $Contact.ObjectId
The example shows how to remove a contact.
Parameters
-OrgContactId
Specifies the object ID of a contact in Microsoft Entra ID.
Type: | System.String |
Aliases: | ObjectId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |