Remove-Marketo Cmdlet
Marketo データを削除します。
Syntax
Remove-Marketo [parameters]
Remarks
Remove-Marketo コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてMarketo データを削除できます。
$conn = -Connect-Marketo -URL 'https://MyMarketoUrl.mktorest.com/' -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 = '[email protected]'" | Remove-Marketo