# Clear synchronized personal contacts

Clear synchronized personal contacts on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

O365Synchronizer

O365Synchronizer is a PowerShell module that allows you to synchronize users/contacts to user mailboxes contact list. It can also be used to synchronize users between tenants as contacts or guests.

[View on GitHub](https://github.com/EvotecIT/O365Synchronizer) [Visit Website](#) [Releases](https://github.com/EvotecIT/O365Synchronizer/releases/tag/v1.0.3) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/O365Synchronizer)

Stars**48**

Forks**12**

Open issues**4**

PowerShell Gallery downloads**3100**

Release**v1.0.7**

Language: PowerShell Updated: 2026-11-03

Curated Examples

Preview cleanup of synchronized contacts from a mailbox folder.

This pattern is useful when you need to remove only contacts previously stamped by O365Synchronizer.

It is adapted from `Examples/01.PersonalContactsClear.ps1`.

## Example

```powershell
Import-Module O365Synchronizer

$clientId = '<application-id>'
$tenantId = '<tenant-id>'
$clientSecret = '<client-secret>'

$credential = [pscredential]::new($clientId, (ConvertTo-SecureString $clientSecret -AsPlainText -Force))
Connect-MgGraph -ClientSecretCredential $credential -TenantId $tenantId -NoWelcome

Clear-O365PersonalContact `
    -Identity 'pilot.user@example.com' `
    -GuidPrefix 'O365Synchronizer' `
    -FolderName 'O365Sync' `
    -WhatIf
```

## What this demonstrates

- connecting with application credentials
- targeting one pilot mailbox
- previewing cleanup of synchronized contacts only

## Source

- [01.PersonalContactsClear.ps1](https://github.com/EvotecIT/O365Synchronizer/blob/master/Examples/01.PersonalContactsClear.ps1)

<!-- PowerForge markdown artifact sha256:FBADE572B36F3BA7B11416221159791C0459309F04CC7631528244D7AECA7A30 -->
