Cmdlets for SugarCRM

Build 24.0.9060

Remove-SugarCRM Cmdlet

Parameters   Output Objects  

Deletes SugarCRM data.

Syntax

Remove-SugarCRM [parameters]

Remarks

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

$conn = Connect-SugarCRM -URL 'http://mySugarCRM.com' -User 'myUser' -Password 'myPassword'
Remove-SugarCRM -Connection $conn -Table "Accounts" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-SugarCRM -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SugarCRM -Connection $conn -Table Accounts -Where "Industry = 'Manufacturing'" | Remove-SugarCRM

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