--- title: "Remove-VSBVirtualLab (obsolete)" description: "This cmdlet removes VMware virtual labs. You can remove virtual labs from the Veeam Backup & Replication console or from ESXi hosts. To remove virtual labs from ESXi hosts, use the FromHost parameter." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/remove-vsbvirtuallab.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Obsolete Cmdlets > Remove-VSBVirtualLab (obsolete)" dateModified: "2026-08-19" --- # Remove-VSBVirtualLab ## Short Description Removes a specified VMware virtual lab. ::: note This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the [`Remove-VBRVirtualLab`](remove-vbrvirtuallab.md) cmdlet. ::: **Platform**: VMware For Hyper-V, run the [`Remove-VSBHvVirtualLab`](remove-vsbhvvirtuallab.md) cmdlet. **Product Edition**: Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Remove-VSBVirtualLab [[-VirtualLab] ] [-FromHost] [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes VMware virtual labs. You can remove virtual labs from the Veeam Backup & Replication console or from ESXi hosts. To remove virtual labs from ESXi hosts, use the `FromHost` parameter. If you remove a virtual lab from the Veeam Backup & Replication console, you can add it back by running the [`Connect-VSBHvVirtualLab`](connect-vsbhvvirtuallab.md) cmdlet. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

FromHost

Defines that the cmdlet will remove virtual labs from ESXi hosts.

SwitchParameter

False

Named

False

VirtualLab

Specifies the array of virtual lab names. The cmdlet will remove these virtual labs.

Accepts the CViSbVirtualLab[] object. To get this object, run the Get-VSBVirtualLab cmdlet.

CViSbVirtualLab[]

False

0

True (ByPropertyName, ByValue)

Confirm

Defines whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.

SwitchParameter

False

Named

False

WhatIf

Defines whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Example 1. Removing Virtual Lab from Console This example shows how to remove a virtual lab from the Veeam Backup & Replication console. ``` $vlab = Get-VSBVirtualLab -Name "Virtual Lab" Remove-VSBVirtualLab -VirtualLab $vlab ``` Perform the following steps: 1. Run the [`Get-VSBVirtualLab`](get-vsbvirtuallab.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$vlab` variable. 2. Run the `Remove-VSBVirtualLab` cmdlet. Set the `$vlab` variable as the `VirtualLab` parameter value. ::: ::: example ### Example 2. Removing Virtual Lab from ESXi Host This example shows how to remove a virtual lab from the ESXi host. ``` $vlab = Get-VSBVirtualLab -Name "Virtual Lab" Remove-VSBVirtualLab -VirtualLab $vlab -FromHost ``` Perform the following steps: 1. Run the [`Get-VSBVirtualLab`](get-vsbvirtuallab.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$vlab` variable. 2. Run the `Remove-VSBVirtualLab` cmdlet. Set the `$vlab` variable as the `VirtualLab` parameter value. Provide the `FromHost` parameter. ::: ## Related Commands [`Get-VSBVirtualLab`](get-vsbvirtuallab.md)