Cmdlets for Marketo

Build 25.0.9434

Remove-Marketo Cmdlet

Parameters   Output Objects  

Deletes Marketo data.

Syntax

Remove-Marketo [parameters]

Remarks

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

$conn = -Connect-Marketo -URL 'https://MyMarketoUrl.mktorest.com/' -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret'
Remove-Marketo -Connection $conn -Table "Leads" -Id "c2ef66a5-a545-413b-9312-79a53caadbc4"
The Where parameter can also be used to specify the primary key:
Remove-Marketo -Connection $conn -Table "exTablePowershell;" -Where "Id = c2ef66a5-a545-413b-9312-79a53caadbc4"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Marketo -Connection $conn -Table Leads -Where "Email = '[email protected]'" | Remove-Marketo

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434