--- title: "Remove-VBRVirtualLab" description: "Removes virtual labs from Veeam Backup & Replication. Platform: VMware Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet removes virtual labs from Veeam Backup & Replication." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/remove-vbrvirtuallab.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > SureBackup > SureBackup Virtual Labs > Remove-VBRVirtualLab" dateModified: "2026-08-19" --- # Remove-VBRVirtualLab ## Short Description Removes virtual labs from Veeam Backup & Replication. **Platform**: VMware **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Remove-VBRVirtualLab [-VirtualLab] [-FromHost] [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes virtual labs from Veeam Backup & Replication. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

FromHost

Defines that the cmdlet will remove virtual lab from Veeam Backup & Replication and VMware infrastructure.

If you specify this parameter, the cmdlet will remove a virtual lab from both Veeam Backup & Replication and VMware infrastructures. Otherwise, the cmdlet will remove the virtual lab from the VMware infrastructure only.

SwitchParameter

False

Named

False

VirtualLab

Specifies a virtual lab. The cmdlet will remove this virtual lab from the Veeam Backup & Replication infrastructure.

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

VBRVirtualLab[]

True

0

True (ByPropertyName, ByValue)

Confirm

Defines that the cmdlet will display a prompt that asks if the user is sure that he wants to continue.

Note: Microsoft PowerShell enables the Confirm parameter for this cmdlet by default. To disable this option, set the parameter value to $false. That is, Confirm:$false.

SwitchParameter

False

Named

False

WhatIf

Defines that the cmdlet will write 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 Veeam Backup & Replication This example shows how to remove the `Exchange 01` virtual lab from Veeam Backup & Replication. ``` $lab = Get-VBRVirtualLab -Name "Exchange 01" Remove-VBRVirtualLab -VirtualLab $lab ``` Perform the following steps: 1. Run the [`Get-VBRVirtualLab`](get-vbrvirtuallab.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$lab` variable. 2. Run the `Remove-VBRVirtualLab` cmdlet. Set the `$lab` variable as the `VirtualLab` parameter value. ::: ::: example ### Example 2. Removing Virtual Lab from Veeam Backup & Replication This example shows how to remove the `SQL07` virtual lab from Veeam Backup & Replication and the VMware infrastructure. ``` $lab = Get-VBRVirtualLab -Name "SQL07" Remove-VBRVirtualLab -VirtualLab $lab -FromHost ``` Perform the following steps: 1. Run the [`Get-VBRVirtualLab`](get-vbrvirtuallab.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$lab` variable. 2. Run the `Remove-VBRVirtualLab` cmdlet. Set the `$lab` variable as the `VirtualLab` parameter value. Provide the `FromHost` parameter. ::: ## Related Commands [`Get-VBRVirtualLab`](get-vbrvirtuallab.md)