'This will completely remove all traces of a remote copy group.
It should be used when deleting a replication enabled volume
or if setting up a remote copy group fails. It will try and do the
following:
-Stop remote copy
-Remove volume from Remote Copy Group on main array
-Delete Remote Copy Group from main array
-Delete volume from main array'

def _do_volume_replication_destroy(self, volume, rcg_name=None, retype=False):

    if (not rcg_name):
        rcg_name = self._get_3par_rcg_name(volume['id'])
    vol_name = self._get_3par_vol_name(volume['id'])
    try:
        self.client.stopRemoteCopy(rcg_name)
    except Exception:
        pass
    try:
        self.client.removeVolumeFromRemoteCopyGroup(rcg_name, vol_name, removeFromTarget=True)
    except Exception:
        pass
    try:
        self.client.removeRemoteCopyGroup(rcg_name)
    except Exception:
        pass
    try:
        if (not retype):
            self.client.deleteVolume(vol_name)
    except Exception:
        pass
