Cmdlets for NetSuite

Build 24.0.9060

Remove-NetSuite Cmdlet

Parameters   Output Objects  

Deletes NetSuite data.

Syntax

Remove-NetSuite [parameters]

Remarks

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

$conn = Connect-NetSuite -AccountId "XABC123456" -Schema "SuiteTalk" -AuthScheme "Token" -OAuthClientId "MyOAuthClientId" -OAuthClientSecret "MyOAuthClientSecret" -OAuthAccessToken "MyOAuthAccessToken" -OAuthAccessTokenSecret "MyOAuthAccessTokenSecret"
Remove-NetSuite -Connection $conn -Table "Account" -Id ""
The Where parameter can also be used to specify the primary key:
Remove-NetSuite -Connection $conn -Table "exTablePowershell;" -Where "InternalId = "
The primary key can also be passed to the cmdlet along the pipeline:
Select-NetSuite -Connection $conn -Table Account -Where "acctName = 'Checking'" | Remove-NetSuite

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