Remove-GitHubModuleSettings
SYNOPSIS
Removes the saved module settings file
SYNTAX
__AllParameterSets
Remove-GitHubModuleSettings [[-GitHubConfigPath] <string>] [[-GitHubConfigFile] <string>]
[-AndVariables] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- Get-GHRemoveModuleSettings
DESCRIPTION
The Remove-GitHubModuleSettings function deletes the settings file created by Export-GitHubModuleSettings
With -AndVariables the in-memory state (token, base uri & every setting) is reset to the defaults as well
EXAMPLES
EXAMPLE 1
Remove-GitHubModuleSettings
Deletes the default settings file
EXAMPLE 2
Remove-GitHubModuleSettings -AndVariables
Deletes the default settings file & resets the session to the defaults
PARAMETERS
-AndVariables
Also reset the in-memory token, uris & settings
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-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: ''
-GitHubConfigFile
Name of the settings file
Defaults to config.psd1
Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-GitHubConfigPath
Folder of the settings file
Defaults to Celerium.GitHub in the user profile folder
Type: System.String
DefaultValue: (Join-Path -Path ([System.Environment]::GetFolderPath('UserProfile')) -ChildPath 'Celerium.GitHub')
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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-GHRemoveModuleSettings