Cmdlets for Microsoft Teams

Build 25.0.9434

Remove-MSTeams Cmdlet

Parameters   Output Objects  

Deletes Microsoft Teams data.

Syntax

Remove-MSTeams [parameters]

Remarks

The Remove-MSTeams cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Microsoft Teams data.

$conn = Connect-MSTeams -InitiateoAuth "GETANDREFRESH"
Remove-MSTeams -Connection $conn -Table "Teams" -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key:
Remove-MSTeams -Connection $conn -Table "exTablePowershell;" -Where "Id = Jq74mCczmFXk1tC10GB"
The primary key can also be passed to the cmdlet along the pipeline:
Select-MSTeams -Connection $conn -Table Teams -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Remove-MSTeams

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434