< Back

Clear-GitHubAuthentication

Sat Jan 18, 2020 9:34 pm

NAME 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





PARAMETERS

-SessionOnly [<SwitchParameter>]

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).



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





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

that.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Clear-GitHubAuthentication



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











RELATED LINKS