Remove-Slack Cmdlet
Deletes Slack data.
Syntax
Remove-Slack [parameters]
Remarks
The Remove-Slack cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Slack data.
$conn = Connect-Slack -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret' -CallbackURL 'http://localhost:33333' Remove-Slack -Connection $conn -Table "Channels" -Id "123456"The Where parameter can also be used to specify the primary key:
Remove-Slack -Connection $conn -Table "exTablePowershell;" -Where "Id = 123456"The primary key can also be passed to the cmdlet along the pipeline:
Select-Slack -Connection $conn -Table Channels -Where "IsPublic = 'True'" | Remove-Slack