Cmdlets for HubDB

Build 24.0.8963

Remove-HubDB Cmdlet

Parameters   Output Objects  

Deletes HubDB data.

Syntax

Remove-HubDB [parameters]

Remarks

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

$conn = Connect-HubDB -AuthScheme "OAuth" -OAuthClientID "MyOAuthClientID" -OAuthClientSecret "MyOAuthClientSecret" -CallbackURL "http://localhost:33333"
Remove-HubDB -Connection $conn -Table "NorthwindProducts" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-HubDB -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-HubDB -Connection $conn -Table NorthwindProducts -Where "Industry = 'Floppy Disks'" | Remove-HubDB

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