Cmdlets for Salesforce Marketing Cloud

Build 24.0.8963

Remove-SFMarketingCloud Cmdlet

Parameters   Output Objects  

Deletes Salesforce Marketing Cloud data.

Syntax

Remove-SFMarketingCloud [parameters]

Remarks

The Remove-SFMarketingCloud cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Salesforce Marketing Cloud data.

$conn = Connect-SFMarketingCloud -User "MyUser" -Password "MyPassword" 
Remove-SFMarketingCloud -Connection $conn -Table "Subscriber" -Id "902548304"
The Where parameter can also be used to specify the primary key:
Remove-SFMarketingCloud -Connection $conn -Table "exTablePowershell;" -Where "Id = 902548304"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SFMarketingCloud -Connection $conn -Table Subscriber -Where "EmailAddress = '[email protected]'" | Remove-SFMarketingCloud

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