Cmdlets for SuiteCRM

Build 22.0.8462

Remove-SuiteCRM Cmdlet

Parameters   Output Objects  

Deletes SuiteCRM data.

Syntax

Remove-SuiteCRM [parameters]

Remarks

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

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

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462