Clear GitHubAuthentication - X-Guardian/PowerShellForGitHub GitHub Wiki

Clear-GitHubAuthentication

SYNOPSIS

Clears out any GitHub API token from memory, as well as from local file storage.

SYNTAX

Clear-GitHubAuthentication [-SessionOnly] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Clears out any GitHub API token from memory, as well as from local file storage.

The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub

EXAMPLES

EXAMPLE 1

Clear-GitHubAuthentication

Clears out any GitHub API token from memory, as well as from local file storage.

PARAMETERS

-SessionOnly

By default, this will clear out the cache in memory, as well as in the local configuration file. If this switch is specified, authentication will be cleared out in this session only -- the local configuration file cache will remain (and thus still be available in a new PowerShell session).

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

This command will not clear your configuration settings. Please use Reset-GitHubConfiguration to accomplish that.

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️