< Back

Remove-OMPModule

Sat Jan 18, 2020 5:43 pm

NAME Remove-OMPModule



SYNOPSIS

Removes a module from this session.





SYNTAX

Remove-OMPModule [-Name] <String[]> [[-PluginSafe]] [<CommonParameters>]





DESCRIPTION

Removes a module from this session.





PARAMETERS

-Name <String[]>

Name of the module



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PluginSafe [<SwitchParameter>]

If you are removing the module as part of a plugin use this switch to unload a module only if it is not in the

autoloaded modules. This will also only unload a module if it was loaded in this session (Loaded prior to

OhMyPsh being started). Note that this is not 'safe' if there are multiple plugins loaded with the same module

requirements.



Required? false

Position? 2

Default value False

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





Author: Zachary Loeber



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



Remove-OMPModule -Name 'posh-git' -PluginSafe



Removes posh-git from this session if it was not autoloaded or loaded when OhMyPsh started.



RELATED LINKS

https://www.github.com/zloeber/OhMyPsh https://www.github.com/zloeber/OhMyPsh