Remove-DPMPGSet
Remove-DPMPGSet
Deletes a PG set.
Syntax
Parameter Set: Default
Remove-DPMPGSet [-PGSet] <PGSet> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-DPMPGSet cmdlet deletes a System Center 2012 – Data Protection Manager (DPM) protection group (PG) set. A DPM PG is a collection of protection groups that you collocate on the same tape.
Parameters
-PGSet<PGSet>
Specifies the PG set object that you delete. To obtain a PG set object, use the Get-DPMPGSet cmdlet.
Aliases |
none |
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.
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.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Notes
- For more information, type "
Get-Help Remove-DPMPGSet -detailed
".
Examples
Example 1: Remove a PG set
This example removes the first PG set from the PG sets on the server named DPMServer07.
The first command uses the Get-DPMPGSet cmdlet to get the PG sets for the specified server and stores them in the $PgSet variable.
The second command specifies the first member of the $PgSet variable by using standard array notation. The command removes that PG set.
PS C:\> $PgSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> Remove-DPMPGSet -PGSet $PgSet[0]