Remove-Klaviyo Cmdlet
Deletes Klaviyo data.
Syntax
Remove-Klaviyo [parameters]
Remarks
The Remove-Klaviyo cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Klaviyo data.
$conn = Connect-Klaviyo -AuthScheme "OAuthPKCE" -InitiateOAuth "GETANDREFRESH" -OAuthClientId "myClientId" -OAuthClientSecret "myClientSecret" -CallbackURL "http://localhost:33333" Remove-Klaviyo -Connection $conn -Table "SampleTable_1" -Id "6"The Where parameter can also be used to specify the primary key:
Remove-Klaviyo -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"The primary key can also be passed to the cmdlet along the pipeline:
Select-Klaviyo -Connection $conn -Table SampleTable_1 -Where "Column2 = 'Bob'" | Remove-Klaviyo