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