Cmdlets for Mailchimp

Build 24.0.8963

Remove-MailChimp Cmdlet

Parameters   Output Objects  

Deletes Mailchimp data.

Syntax

Remove-MailChimp [parameters]

Remarks

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

$conn = Connect-MailChimp -APIKey 'myAPIKey'
Remove-MailChimp -Connection $conn -Table "Lists" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-MailChimp -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-MailChimp -Connection $conn -Table Lists -Where " = ''" | Remove-MailChimp

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963