Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Remove-VBRTapeLibrary

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>]

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 array of tape libraries. The cmdlet will remove these tape libraries.

Accepts VBRTapeLibrary type.

True

Named

True (ByValue,
ByProperty
Name)

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.

Return Type

None

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

Related Commands

Get-VBRTapeLibrary

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation