Remove-VBRTapeMedium

Short Description

Removes the selected tapes from tape catalog.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Remove-VBRTapeMedium -Medium <VBRTapeMedium[]> [-FromVault] [-WhatIf]

[-Confirm] [<CommonParameters>]

Detailed Description

This cmdlet removes the selected tapes and the data written to the tapes from the tape catalog and Veeam backup database.

Note

Consider the following:

  • You can remove only offline tapes.
  • You cannot remove protected tapes.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

FromVault

Defines that the cmdlet will remove the tape from the vault.

Note that the tape will not be removed from the tape catalog.

SwitchParameter

False

Named

False

Medium

Specifies the tapes you want to remove.

Accepts the VBRTapeMedium[] object. To get this object, run the Get-VBRTapeMediumReturns tapes. cmdlet.

VBRTapeMedium[]

True

Named

True (ByPropertyName, ByValue)

Confirm

Defines whether the cmdlet displays a prompt that asks if the user is sure that they want 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 whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Removing Tape from the Tape Catalog and Backup Database

This example shows how to remove the tape SWOHC001 from the tape catalog and Veeam backup database.

$tape = Get-VBRTapeMedium -Name SWOHC001

Remove-VBRTapeMedium -Medium $tape

Perform the following steps:

  1. Run the Get-VBRTapeMediumReturns tapes. cmdlet. Specify the Name parameter value. Save it to the $tape variable.
  2. Run the Remove-VBRTapeMedium cmdlet. Set the $tape variable as the Medium parameter value.

Get-VBRTapeMediumReturns tapes.

Page updated 2026-08-19

Page content applies to build 13.1.1.18