Erase-VBRTapeMedium
Short Description
Erases data from tape.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Erase-VBRTapeMedium -Medium <VBRTapeMedium[]> [-Long] [-Wait] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>] |
Related Commands
Return Type
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.
You cannot run erase for the following tapes:
- Offline tapes
- Tapes used by any jobs
- Tapes with software or hardware protection.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Medium | Specifies the tapes which you want to erase. Accepts VBRTapeMedium object, GUID or string type. You can assign multiple tapes to this object. | True | Named | True (by Value | False |
Long | If indicated, the long (full) erase process is performed. Otherwise, Veeam Backup & Replication runs the short erase procedure. | False | Named | False | False |
Wait | Indicates that the command waits for the erase process(es) to complete before accepting more input. | False | Named | False | 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 runs short erase on the tape named "00170010".
- Run Get-VBRTapeMedium to get the tape and save it to the $tape variable.
- Run Erase-VBRTapeMedium with this variable.
Example 2
This command runs long erase on the tape named "00170010".
- Run Get-VBRTapeMedium to get the tape and save it to the $tape variable.
- Run Erase-VBRTapeMedium with this variable. Use the Long parameter.