CmdID / PowerShell / Cmdlets / Remove
Remove-VMHardDiskDrive
Deletes a hard disk drive from a virtual machine. Windows Server PowerShell reference
From the Windows Server PowerShell reference 11 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts from which the virtual hard disk drive is to be deleted.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ControllerLocationSpecifies the number of the location on the controller at which the virtual hard disk drive is to be deleted.-ControllerNumberSpecifies the number of the controller from which the virtual hard disk drive is to be deleted.-ControllerTypeSpecifies the type of the controller where the virtual hard disk is to be deleted.-CredentialSpecifies one or more user accounts that have permission to perform this action.-PassthruSpecifies that an object is to be passed through to be pipeline representing the virtual hard disk drive to be deleted.-VMHardDiskDriveSpecifies the virtual hard disk drive to be deleted.-VMNameSpecifies the name of the virtual machine from which the virtual hard disk is to be deleted.-WhatIf, -wiShows what would happen if the cmdlet runs.