Remove-SCLogicalNetwork

Deletes a logical network object.

Description

The Remove-SCLogicalNetwork cmdlet deletes a System Center Virtual Machine Manager (VMM) logical network object.

NOTE: If any logical network definition, virtual machine template, or service template object references a specific logical network object, that logical network object will not be deleted.

For more information about Remove-SCLogicalNetwork, type: "Get-Help Remove-SCLogicalNetwork -online".

Parameters

LogicalNetwork

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a logical network. A logical network is a named grouping of IP subnets and VLANs that is used to organize and simplify network assignments.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.
Requires a VMM logical network object, which can be retrieved by using the Get-SCLogicalNetwork cmdlet.

Examples

1: Delete a logical network
PS C:\> $LogicalNetwork = Get-SCLogicalNetwork "LogicalNetwork01"
PS C:\> Remove-SCLogicalNetwork -LogicalNetwork $LogicalNetwork
The first command gets the logical network object named LogicalNetwork01 and stores it in the $LogicalNetwork variable.

The second command deletes the logical network object stored in $LogicalNetwork.

See Also