Uninstall-AzModule
Uninstall Azure PowerShell modules.
Syntax
Uninstall-AzModule
[-ExcludeModule <String[]>]
[-PrereleaseOnly]
[-RemoveAzureRm]
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Uninstall-AzModule
[-Name] <String[]>
[-RemoveAzureRm]
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Uninstall Azure PowerShell modules.
Examples
EXAMPLE 1
Uninstall-AzModule storage, network
EXAMPLE 2
Uninstall-AzModule -ExcludeModule storage, network
EXAMPLE 3
Uninstall-AzModule -PrereleaseOnly
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExcludeModule
Az modules to exclude from uninstallation.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Force
Installs modules and overrides the confirmation messages of each step.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Az modules to uninstall. Can be the names without Az. prefix.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PrereleaseOnly
Specify to uninstall prerelease modules only.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveAzureRm
Remove all Azure and AzureRm modules.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for