Cmdlets for Salesforce

Build 24.0.9060

Remove-Salesforce Cmdlet

Parameters   Output Objects  

Deletes Salesforce data.

Syntax

Remove-Salesforce [parameters]

Remarks

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

$conn = Connect-Salesforce -User "MyUser" -Password "MyPassword" -SecurityToken "MySecurityToken"
Remove-Salesforce -Connection $conn -Table "Account" -Id "1045625d-99ee-e011-a272-00155d01ad6b"
The Where parameter can also be used to specify the primary key:
Remove-Salesforce -Connection $conn -Table "exTablePowershell;" -Where "Id = 1045625d-99ee-e011-a272-00155d01ad6b"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Salesforce -Connection $conn -Table Account -Where "Industry = 'Floppy Disks'" | Remove-Salesforce

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