Remove-DPMRecoveryPoint

Removes a recovery point from tape or disk.

Syntax

Remove-DPMRecoveryPoint [-RecoveryPoint] <RecoverySource> [-ForceDeletion] [-Confirm] [-WhatIf]
 [<CommonParameters>]

Description

The Remove-DPMRecoveryPoint cmdlet removes a recovery point from tape or disk. If a recovery point exists in multiple locations, for example, on disk and tape, or two tapes, use the Get-DPMRecoveryPointLocation cmdlet to get the location of the recovery point.

Examples

Example 1: Remove a recovery point

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $PObjects = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> $RPoint = Get-DPMRecoveryPoint -Datasource $PObjects
PS C:\> Remove-DPMRecoveryPoint -RecoveryPoint $RPoint

The first command gets the protection group on the DPM server named DPMServer02, and stores the results in the $PGroup variable.

The second command gets the list of protected and unprotected data in the protection group stored in $PGroup. The command stores the results in the $PObject variable.

The third command gets the recovery point for the for the data source stored in $PObjects, and stores the results in the $RPoint variable.

The final command removes the recovery point stored in $RPoint.

Parameters

-ForceDeletion

Indicates that System Center 2016 - Data Protection Manager (DPM) prunes the data source regardless if it is currently running a backup job.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryPoint

Specifies a recovery point that this cmdlet removes. To obtain a recovery point location object, use the Get-DPMRecoveryPoint cmdlet.

Type:RecoverySource
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