Cmdlets for GitHub

Build 24.0.9060

Remove-GitHub Cmdlet

Parameters   Output Objects  

Deletes GitHub data.

Syntax

Remove-GitHub [parameters]

Remarks

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

$conn = Connect-GitHub -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret' -CallbackURL 'http://localhost:33333'
Remove-GitHub -Connection $conn -Table "Repositories" -Id "mojombo"
The Where parameter can also be used to specify the primary key:
Remove-GitHub -Connection $conn -Table "exTablePowershell;" -Where "Id = mojombo"
The primary key can also be passed to the cmdlet along the pipeline:
Select-GitHub -Connection $conn -Table Repositories -Where "OwnerLogin = 'mojombo'" | Remove-GitHub

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