Remove-DPMRecoveryPoint

Removes a recovery point from tape or disk.

Syntax

Remove-DPMRecoveryPoint
      [-RecoveryPoint] <RecoverySource>
      [-ForceDeletion]
      [-WhatIf]
      [-Confirm]
      [<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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-ForceDeletion

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
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
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

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