Remove-RecoveryPoint
Remove-RecoveryPoint
Removes a recovery point from tape or disk.
Syntax
Remove-RecoveryPoint [-RecoveryPoint] <RecoverySource> [-Confirm] [-ForceDeletion] [<CommonParameters>]
Detailed Description
The Remove-RecoveryPoint removes a recovery point from tape or disk.
If a recovery point exists in multiple location, for e.g. on disk and tape, or two tapes, then use the Get-RecoveryPointLocation to get the location of the recovery point.
Parameters
-RecoveryPoint
The recovery point to use.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
0 |
-Confirm
Asks the user to confirm the action.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-ForceDeletion
Indicates that the data source will be pruned even if a backup job is currently running.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-CommonParameter
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.
Input and Return Types
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
Notes
For more information, type "Get-Help Remove-RecoveryPoint -detailed".
For technical information, type "Get-Help Remove-RecoveryPoint -full".Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.
Examples
EXAMPLE 1
$pg = Get-ProtectionGroup -DPMServerName TestingServer
$ds = Get-Datasource -ProtectionGroup $pg
$rp = Get-RecoveryPoint -Datasource $ds
Remove-RecoveryPoint -RecoveryPoint $rp
This command removes all the recovery points for a datasource.