Remove-GitHubApiKey
SYNOPSIS
Removes the stored GitHub token
SYNTAX
__AllParameterSets
Remove-GitHubApiKey [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- Get-GHRemoveApiKey
DESCRIPTION
The Remove-GitHubApiKey function clears the token stored in memory. It does not change the saved settings file or the GITHUB_TOKEN / GH_TOKEN environment variables
EXAMPLES
EXAMPLE 1
Remove-GitHubApiKey
Removes the stored token
EXAMPLE 2
Remove-GitHubApiKey -WhatIf
Shows what would happen without removing the token
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
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
OUTPUTS
NOTES
Aliases: Get-GHRemoveApiKey