Erase-VBRTapeMedium

Short Description

Erases data from tape.

Applies to

Platform: VMware, Hyper-V

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

Syntax

Erase-VBRTapeMedium -Medium <VBRTapeMedium[]> [-Long] [-Wait] [-WhatIf] [-Confirm]  [<CommonParameters>]

Detailed Description

This cmdlet erases data from the selected tapes. The erased tapes are moved to the Free media pool.

The cmdlet provides two scenarios for erasing options:

  • Short: only the tape data header is cleared. The tape becomes available for overwriting. Short erase is a quick procedure.
  • Long: all data is cleared from tape. This procedure requires more time.

Important

You cannot erase data from the following types of tapes:

  • Offline tapes
  • Tapes used by any jobs
  • Tapes with software or hardware protection

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Medium

Specifies the array of tapes. The cmdlet will erase these tapes.

Accepts the VBRTapeMedium[] object, GUID or string. To get this object, run the Get-VBRTapeMedium cmdlet.

True

Named

True (ByValue,
ByProperty
Name)

Long

Defines that the cmdlet will perform the long (full) erase.

Default: short erase.

SwitchParameter

False

Named

False

Wait

Defines that the command waits for the erase process(es) to complete before accepting more input.

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

Confirm

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

SwitchParameter

False

Named

False

<CommonParameters>

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

Output Object

VBRBackupSession

Examples

Erase-VBRTapeMediumExample 1. Running Short Erase on Selected Tape

Erase-VBRTapeMediumExample 2. Running Long Erase on Selected Tape

Related Commands

Get-VBRTapeMedium

Page updated 10/25/2024

Page content applies to build 12.3.1.1139