Cmdlets for ActiveCampaign

Build 24.0.9060

Remove-ActiveCampaign Cmdlet

Parameters   Output Objects  

Deletes ActiveCampaign data.

Syntax

Remove-ActiveCampaign [parameters]

Remarks

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

$conn = Connect-ActiveCampaign -URL "yourURL" -APIKEY "yourApiKey"
Remove-ActiveCampaign -Connection $conn -Table "Contacts" -Id "6"
The Where parameter can also be used to specify the primary key:
Remove-ActiveCampaign -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"
The primary key can also be passed to the cmdlet along the pipeline:
Select-ActiveCampaign -Connection $conn -Table Contacts -Where "FirstName = 'Bob'" | Remove-ActiveCampaign

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