Skip to content

Disconnect-GitHubAccount

SYNOPSIS

Disconnects from GitHub and removes the GitHub context.

SYNTAX

__AllParameterSets

Disconnect-GitHubAccount [[-Context] <Object[]>] [-Silent] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Disconnects from GitHub and removes the GitHub context. Optionally revokes the access token to ensure it cannot be used after disconnection.

EXAMPLES

EXAMPLE 1

Disconnect-GitHubAccount

Disconnects from GitHub and removes the default GitHub context.

EXAMPLE 2

Disconnect-GithubAccount -Context 'github.com/Octocat'

Disconnects from GitHub and removes the context 'github.com/Octocat'.

EXAMPLE 3

Disconnect-GitHubAccount -RevokeToken

Disconnects from GitHub, revokes the access token, and removes the default GitHub context.

EXAMPLE 4

Disconnect-GithubAccount -Context 'github.com/Octocat' -RevokeToken

Disconnects from GitHub, revokes the access token, and removes the context 'github.com/Octocat'.

PARAMETERS

-Context

The context to run the command with. Can be either a string or a GitHubContext object.

Type: System.Object[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Silent

Suppresses the output of the function.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- Quiet
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Object[]

{{ Fill in the Description }}

OUTPUTS

System.Void

{{ Fill in the Description }}

NOTES