< Back

Remove-AppxVolume

Tue Jan 29, 2019 9:25 pm

NAME Remove-AppxVolume



SYNOPSIS

Removes an appx volume.





SYNTAX

Remove-AppxVolume [-Volume] <AppxVolume[]> [-Confirm] [-WhatIf] [<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.





PARAMETERS

-Volume <AppxVolume[]>

Specifies the AppxVolume object to remove.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









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:\\.



RELATED LINKS

Add-AppxVolume

Dismount-AppxVolume

Get-AppxVolume

Dismount-AppxVolume