Cmdlets for Salesloft

Build 24.0.9060

Remove-SalesLoft Cmdlet

Parameters   Output Objects  

Deletes Salesloft data.

Syntax

Remove-SalesLoft [parameters]

Remarks

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

$conn = Connect-SalesLoft -InitiateOAuth "GETANDREFRESH" -AuthScheme "OAuth" -OAuthClientID "MyOAuthClientId" -OAuthClientSecret "MyOAuthClientSecret" -CallbackURL "http://localhost:33333"
Remove-SalesLoft -Connection $conn -Table "Accounts" -Id "6"
The Where parameter can also be used to specify the primary key:
Remove-SalesLoft -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SalesLoft -Connection $conn -Table Accounts -Where "Name = 'Bob'" | Remove-SalesLoft

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