Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Remove-NaSnapmirror


NAME
Remove-NaSnapmirror

SYNOPSIS
Completely delete a SnapMirror relationship.

SYNTAX
Remove-NaSnapmirror [-Destination] <String> [-Source] <String> [-SourceContr
oller] <NaController> [-Controller <NaController>] [-WhatIf] [-Confirm] [<Co
mmonParameters>]


DESCRIPTION
This convenience cmdlet completely deletes a SnapMirror relationship. After
a series of sanity checks, this cmdlet releases the mirror on the source, b
reaks the mirror on the destination, deletes any snapshots on the destinatio
n, and deletes any sync or async SnapMirror schedule entries on the destinat
ion.


PARAMETERS
-Destination <String>
The destination location of the SnapMirror relationship.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Source <String>
The source location of the SnapMirror relationship.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-SourceController <NaController>
The source controller, as returned by an invocation of Connect-NaControl
ler.

Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES


Category: snapmirror
API: snapmirror-get-status, snapmirror-release, snapmirror-break, snapsh
ot-delete, snapmirror-delete-schedule, snapmirror-delete-sync-schedule

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

C:\PS>Remove-NaSnapmirror -Destination benson:dunn_vol2_mirror -Source dunn:
vol2 -SourceController (Connect-NaController dunn -Transient)


Remove the specified Snapmirror relationship.






RELATED LINKS
Get-NaSnapmirror







 Data ONTAP® PowerShell Toolkit