Remove-MailChimp Cmdlet
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