--- title: "Remove-VBRTapeLibrary" description: "This cmdlet removes a specified tape library from Veeam Backup & Replication. When you remove a tape library, you stop managing it with your Veeam Backup & Replication console." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/remove-vbrtapelibrary.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Tape Devices > Tape Libraries > Remove-VBRTapeLibrary" dateModified: "2026-08-19" --- # Remove-VBRTapeLibrary ## Short Description Removes a specified tape library from Veeam Backup & Replication. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Remove-VBRTapeLibrary -Library [-WhatIf] [-Confirm] [] ``` ## Detailed Description This cmdlet removes a specified tape library from Veeam Backup & Replication. When you remove a tape library, you stop managing it with your Veeam Backup & Replication console. ::: important Before you remove a tape library, consider the following limitations: - Only the libraries in the offline status can be removed. To remove a tape library, you need to physically disconnect it from the tape server first. Alternatively, you can remove the tape server to which the tape library is connected. - You can remove the tape devices that are not used by any tape jobs. If any jobs are using the media pools assigned to the tape device, first redirect these jobs to other media pools. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Library

Specifies the array of tape libraries. The cmdlet will remove these tape libraries.

Accepts the VBRTapeLibrary object. To get this object, run the Get-VBRTapeLibrary cmdlet.

VBRTapeLibrary[]

True

Named

True (ByPropertyName, ByValue)

Confirm

Defines that the cmdlet will display a prompt that asks if you want to continue running the command.

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 Tape Library [Using Pipeline] This example shows how to remove a tape library named `HP MSL G3 Series 3.00`. ``` Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00" | Remove-VBRTapeLibrary ``` Perform the following steps: 1. Run the [`Get-VBRTapeLibrary`](get-vbrtapelibrary.md) cmdlet. Specify the `Name` parameter value. 2. Pipe the cmdlet output to the `Remove-VBRTapeLibrary` cmdlet. ::: ::: example ### Example 2. Removing Tape Library [Using Variable] This example shows how to remove a tape library named `HP MSL G3 Series 3.00`. ``` $SydneyTapeLibrary = Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00" Remove-VBRTapeLibrary -Library $SydneyTapeLibrary ``` Perform the following steps: 1. Run the [`Get-VBRTapeLibrary`](get-vbrtapelibrary.md) cmdlet. Specify the `Name` parameter value. 2. Run the `Remove-VBRTapeLibrary` cmdlet. Set the `$SydneyTapeLibrary` variable as the `Library` parameter values. ::: ## Related Commands [`Get-VBRTapeLibrary`](get-vbrtapelibrary.md)