CmdID / PowerShell / Cmdlets / Remove
Remove-VMSwitch
Deletes a virtual switch. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 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 on which the virtual switch is to be deleted.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-ForceForces the command to run without asking for user confirmation.-Name, -SwitchNameSpecifies the name of the virtual switch to be deleted.-ResourcePoolNameSpecifies the name of the resource pool from which the switch is to be deleted.-VMSwitchSpecifies the virtual switch to be deleted.-WhatIf, -wiShows what would happen if the cmdlet runs.