Commands › Microsoft Teams

Remove-CsTeamsComplianceRecordingPolicy

Microsoft Teams MicrosoftTeams Remove-*

Deletes an existing Teams recording policy that is used to govern automatic policy-based recording in your tenant. Automatic policy-based recording is only applicable to Microsoft Teams users.

Quick start script

# Remove-CsTeamsComplianceRecordingPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTeamsComplianceRecordingPolicy
$before | Format-List

# 3. Make the change (dry run first)
Remove-CsTeamsComplianceRecordingPolicy -Identity <XdsIdentity> -WhatIf
Remove-CsTeamsComplianceRecordingPolicy -Identity <XdsIdentity>

# 4. Verify and diff
$after = Get-CsTeamsComplianceRecordingPolicy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-CsTeamsComplianceRecordingPolicy [-Tenant <System.Guid>] [-Identity <XdsIdentity>]
 [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Force SwitchParameter Suppresses the display of any non-fatal error message that might arise when running the command.
-Identity XdsIdentity yes Unique identifier to be assigned to the new Teams recording policy.
-Tenant Guid Globally unique identifier (GUID) of the tenant account whose Teams recording policies are being queried. For example:
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.