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