Commands › Exchange Online
Clear-TextMessagingAccount
The Clear-TextMessagingAccount cmdlet allows a user to remove the text messaging settings from their own mailbox. An administrator can't use this cmdlet to remove the text messaging settings from another user's mailbox.
Quick start script
# Clear-TextMessagingAccount — 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-TextMessagingAccount -Identity <MailboxIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Clear-TextMessagingAccount | Export-Clixml .\TextMessagingAccount-$(Get-Date -Format yyyyMMdd).xml
Syntax
Clear-TextMessagingAccount [-Identity] <MailboxIdParameter>
[-Confirm]
[-DomainController <Fqdn>]
[-IgnoreDefaultScope]
[-WhatIf]
[<CommonParameters>]
Parameters (5)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.