Delete a network.
Remove-CivoNetwork [[-Id] <String[]>] [[-Label] <String[]>] [<CommonParameters>]
Deletes a private network based on the ID of the network. ID must be provided. Can be multiple networks.
Remove-CivoNetwork -Id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
$Networks =(
"667a84f6-caeb-4d8b-9ba4-c122564171c5",
"d8f0f800-f2d9-4555-97b8-a3eb1b9a753c",
"9000bbed-309f-42d3-a21b-04d3dd544c93"
)
Remove-CivoNetwork -Id $Networks
Remove-CivoNetwork -Label prod-client01
$Networks =(
"prod-client01",
"test-client01"
)
Remove-CivoNetwork -Label $Networks
The ID of the network or networks that you want to delete. To delete several networks, you need to provide a comma separated list.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://roberthstrand.github.io/civoShell/Remove-CivoNetwork.md