Commands › Exchange Online
Clear-ActiveSyncDevice
Delete all data from a mobile device. **Note**: In Exchange 2013 or later, use the Clear-MobileDevice cmdlet instead. If you have scripts that use Clear-ActiveSyncDevice, update them to use Clear-MobileDevice.
Quick start script
# Clear-ActiveSyncDevice — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Clear-ActiveSyncDevice -Identity <ActiveSyncDeviceIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Clear-ActiveSyncDevice | Export-Clixml .\ActiveSyncDevice-$(Get-Date -Format yyyyMMdd).xml
Syntax
Clear-ActiveSyncDevice [-Identity] <ActiveSyncDeviceIdParameter>
[-Cancel]
[-Confirm]
[-DomainController <Fqdn>]
[-NotificationEmailAddresses <MultiValuedProperty>]
[-WhatIf]
[<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.