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