Remove-Marketo Cmdlet
Marketo データを削除します。
Syntax
Remove-Marketo [parameters]
Remarks
Remove-Marketo コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてMarketo データを削除できます。
$conn = -Connect-Marketo -Schema 'REST' -RESTEndpoint 'https://MyMarketoUrl/rest' -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret' Remove-Marketo -Connection $conn -Table "Leads" -Id "c2ef66a5-a545-413b-9312-79a53caadbc4"Where パラメータは主キーを指定するためにも使われます。
Remove-Marketo -Connection $conn -Table "exTablePowershell;" -Where "Id = c2ef66a5-a545-413b-9312-79a53caadbc4"主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Marketo -Connection $conn -Table Leads -Where "Email = 'sample@email.com'" | Remove-Marketo