Start-DPMTapeErase

Deletes the contents of a tape.

Syntax

Start-DPMTapeErase [-Tape] <Media[]> [-JobStateChangedEventHandler <JobStateChangedEventHandler>] [-Confirm]
 [-WhatIf] [<CommonParameters>]

Description

The Start-DPMTapeErase cmdlet deletes the contents of a tape in System Center 2016 - Data Protection Manager (DPM).

You can reuse an expired tape in DPM without first deleting the data on the tape.

Examples

Example 1: Erase the data on a tape

PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> $DpmTape = Get-DPMTape -DPMLibrary $DpmLibrary
PS C:\> Start-DPMTapeErase -Tape $DpmTape[2]

The first command uses the Get-DPMLibrary cmdlet to get the library for the server named Contoso-DPMServer. The command stores the library in the $DpmLibrary variable.

The second command uses the Get-DPMTape cmdlet to get the tapes in the library, and then stores them in the $DpmTape variable.

The third command deletes the data on the third tape object stored in $DpmTape.

Parameters

-JobStateChangedEventHandler

Specifies an event handler for Job.StateChanged events. Use this parameter to build a graphical user interface based on cmdlets. Do not use this parameter in the DPM Management Shell.

Type:JobStateChangedEventHandler
Aliases:Handler
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tape

Specifies an array of tapes that this cmdlet erases. To obtain a Tape object, use the Get-DPMTape cmdlet.

Type:Media[]
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Job