ONTAP Discussions

Powershell modules to remove snapmirror does not clean base snapshot


I have below code


Invoke-NcSnapmirrorRelease -Source $vsm.SourceLocation -Destination $vsm.DestinationLocation -Confirm:$false -ErrorAction Stop

 Remove-NcSnapmirror -Source $vsm.SourceLocation -Destination $vsm.DestinationLocation -Confirm:$false -ErrorAction Stop


when i remove the snapmirror relationship it does not remove base snapshot  , the relationship type here is DP between two different cluster.


is there any option I am missing here?


I am running above two from remote cluster side




The Powershell command does the same as running "snapmirror release" on the command line. It is standard behavior that the base snapshot remains on the volume. You will have to delete it yourself afterwards.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner