Remove-SCLogicalNetworkDefinition

Deletes a logical network definition.

Description

The Remove-SCLogicalNetworkDefinition cmdlet deletes a logical network definition (also called a network site).

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

Parameters

LogicalNetworkDefinition

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a logical network definition (also called a network site) that contains the subnet that the IP address pool serves as specified by the Subnet parameter.

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 definition object, which can be retrieved by using the Get-SCLogicalNetworkDefinition cmdlet.

Examples

1: Delete a logical network definition.
PS C:\> $Definition = Get-SCLogicalNetworkDefinition -Name "Logical Network Definition 01"
PS C:\> Remove-SCLogicalNetworkDefinition -LogicalNetworkDefinition $Definition
The first command gets the logical network definition named "Logical Network Definition 01" and stores it in the $Definition variable.

The second command deletes the logical network definition stored in the $Definition variable.

See Also