Remove-Cvent Cmdlet
Deletes Cvent data.
Syntax
Remove-Cvent [parameters]
Remarks
The Remove-Cvent cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Cvent data.
$conn = Connect-Cvent -InitiateOAuth "GETANDREFRESH" -OAuthClientId "MyOAuthClientId" -OAuthClientSecret "MyOAuthClientSecret" Remove-Cvent -Connection $conn -Table "Events" -Id "cfd2c068-bdcb-4a01-8fad-280c3230a0f7"The Where parameter can also be used to specify the primary key:
Remove-Cvent -Connection $conn -Table "exTablePowershell;" -Where "Id = cfd2c068-bdcb-4a01-8fad-280c3230a0f7"The primary key can also be passed to the cmdlet along the pipeline:
Select-Cvent -Connection $conn -Table Events -Where "Title = 'CDATA_EVENT'" | Remove-Cvent