Cmdlets for QuickBooks

Build 24.0.9060

Remove-QB Cmdlet

Parameters   Output Objects  

Deletes QuickBooks data.

Syntax

Remove-QB [parameters]

Remarks

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

$conn = Connect-QB
Remove-QB -Connection $conn -Table "Customers" -Id "10456255-0015501366"
The Where parameter can also be used to specify the primary key:
Remove-QB -Connection $conn -Table "exTablePowershell;" -Where "Id = 10456255-0015501366"
The primary key can also be passed to the cmdlet along the pipeline:
Select-QB -Connection $conn -Table Customers -Where "Name = 'Cook, Brian'" | Remove-QB

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