This is an archive version of the document. To get the most up-to-date information, see the current version.

Remove-VBRTapeLibrary

In this article

    Short Description

    Removes a specified tape library from Veeam Backup & Replication.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    Remove-VBRTapeLibrary -Library <VBRTapeLibrary[]> [-WhatIf] [-Confirm] [<CommonParameters>]

    Related Commands

    Get-VBRTapeLibrary

    Return Type

    None

    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.

    To remove a tape library, mind 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

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Library

    Specifies the tape library you want to remove.

    Accepts VBRTapeLibrary object.

    You can assign multiple libraries to this object.

    True

    Named

    True (by Value
    FromPipeline,
    ValueFromPipeline
    ByPropertyName)

    False

    WhatIf

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

    False

    Named

    False

    False

    Confirm

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

    False

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example 1

    This command removes a tape library named 'HP MSL G3 Series 3.00'. The library object is obtained with Get-VBRTapeLibrary and piped down.

    PS C:\PS> Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00" | Remove-VBRTapeLibrary

    Example 2

    This command removes a tape library represented by '$SydneyTapeLibrary' variable. The library object is obtained with Get-VBRTapeLibrary and assigned to the variable beforehand.

    PS C:\PS> Remove-VBRTapeLibrary -Library $SydneyTapeLibrary