'Clean-up remote replication target after exception or on deletion.
:param array: the array serial number
:param remote_array: the remote array serial number
:param device_id: the source device id
:param target_device: the target device id
:param rdf_group: the RDF group
:param volume_name: the volume name
:param rep_extra_specs: replication extra specifications'

def _cleanup_remote_target(self, array, remote_array, device_id, target_device, rdf_group, volume_name, rep_extra_specs):

    (are_vols_paired, local_vol_state, pair_state) = self.rest.are_vols_rdf_paired(array, remote_array, device_id, target_device, rdf_group)
    if are_vols_paired:
        self.provision.break_rdf_relationship(array, device_id, target_device, rdf_group, rep_extra_specs, pair_state)
    self._delete_from_srp(remote_array, target_device, volume_name, rep_extra_specs)
