Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Remove-AppxVolume

Last Updated: 3/8/2017

SYNOPSIS

Removes an appx volume.

SYNTAX

Remove-AppxVolume [-Volume] <AppxVolume[]> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Remove-AppxVolume cmdlet removes an AppxVolume. You can only remove a volume after there are no apps staged to it for any user. After you remove a volume, apps can no longer be added to it.

EXAMPLES

Example 1: Remove a volume by using an ID

PS C:\> Remove-AppxVolume -Volume {984786d3-0cae-49de-a68f-8bedb0ca260b}

This command removes a volume that has the specified media ID.

Example 2: Remove a volume by using a path

PS C:\> Remove-AppxVolume -Volume E:\

This command removes a volume at the path E:.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-Volume

Specifies the AppxVolume object to remove.

Type: AppxVolume[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-WhatIf

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

Type: 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

Add-AppxVolume

Dismount-AppxVolume

Get-AppxVolume

Mount-AppxVolume

© 2017 Microsoft