Remove-EmcConsistencyGroup

Deletes a consistency group and removes all associated resources for that consistency group.

 

Syntax

Remove-EmcConsistencyGroup [-ConsistencyGroup] <ConsistencyGroup> [-DestroyReplicaLuns] [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]

 

Parameters

-ConsistencyGroup <ConsistencyGroup>

Attributes: Required, Position: 1

Specifies the consistency group to delete.

 

-DestroyReplicaLuns <SwitchParameter>

Attributes: Optional, Position: named

Specifies whether or not to destroy the replica (non-production) LUNs in the consistency group.

 

-Force <SwitchParameter>

Attributes: Optional, Position: named

Allows the cmdlet to continue without asking for user confirmation.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-WhatIf <SwitchParameter>

Attributes: Optional, Position: named

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

 

-Confirm <SwitchParameter>

Attributes: Optional, Position: named

Prompts you for confirmation before executing the command.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$service = Get-EmcReplicationService -ID *60*

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID RP_PS_TEST

Remove-EmcConsistencyGroup -ConsistencyGroup $group -DestroyReplicaLuns

This example destroys a consistency group.