Cmdlets for SendGrid

Build 24.0.9060

Remove-SendGrid Cmdlet

Parameters   Output Objects  

Deletes SendGrid data.

Syntax

Remove-SendGrid [parameters]

Remarks

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

$conn = Connect-SendGrid -APIKey 'MyAPIKey'
Remove-SendGrid -Connection $conn -Table "MarketingCampaigns" -Id "16500"
The Where parameter can also be used to specify the primary key:
Remove-SendGrid -Connection $conn -Table "exTablePowershell;" -Where "Id = 16500"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SendGrid -Connection $conn -Table MarketingCampaigns -Where "Id = '17693'" | Remove-SendGrid

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060