public void removeSFSEntryForReplicaReplicationGroup(StorageSystem system,CIMObjectPath replicationSvc,String replicaReplicationGroupName,String sourceReplicationGroupName){
  List<String> sfsEntries=getEMCSFSEntries(system,replicationSvc);
  String entryLabel=formatReplicaLabelForSFSEntry(system.getSerialNumber(),replicaReplicationGroupName,sourceReplicationGroupName);
  String removeEntry=null;
  if (sfsEntries != null && !sfsEntries.isEmpty()) {
    for (    String entry : sfsEntries) {
      if (entry.contains(entryLabel)) {
        removeEntry=entry;
        break;
      }
    }
  }
  if (removeEntry == null) {
    _log.info(String.format("The SFS entry is not found for the replica group %s and source group %s",replicaReplicationGroupName,sourceReplicationGroupName));
    return;
  }
  try {
    CIMArgument[] inArgs=new CIMArgument[]{_cimArgument.stringArray("SFSEntries",new String[]{removeEntry})};
    CIMArgument[] outArgs=new CIMArgument[5];
    invokeMethod(system,replicationSvc,SmisConstants.EMC_REMOVE_SFSENTRIES,inArgs,outArgs);
  }
 catch (  WBEMException e) {
    _log.error("EMCRemoveSFSEntries -- WBEMException: ",e);
  }
}

public void removeSFSEntryForReplicaReplicationGroup ( StorageSystem system , CIMObjectPath replicationSvc , String replicaReplicationGroupName , String sourceReplicationGroupName ) { List < String > sfsEntries = getEMCSFSEntries ( system , replicationSvc ) ; String entryLabel = formatReplicaLabelForSFSEntry ( system . getSerialNumber ( ) , replicaReplicationGroupName , sourceReplicationGroupName ) ; String removeEntry = null ; if ( sfsEntries != null && ! sfsEntries . isEmpty ( ) ) { for ( String entry : sfsEntries ) { if ( entry . contains ( entryLabel ) ) { removeEntry = entry ; break ; } } } if ( removeEntry == null ) { _log . info ( String . format ( "The SFS entry is not found for the replica group %s and source group %s" , replicaReplicationGroupName , sourceReplicationGroupName ) ) ; return ; } try { CIMArgument [ ] inArgs = new CIMArgument [ ] { _cimArgument . stringArray ( "SFSEntries" , new String [ ] { removeEntry } ) } ; CIMArgument [ ] outArgs = new CIMArgument [ 5 ] ; invokeMethod ( system , replicationSvc , SmisConstants . EMC_REMOVE_SFSENTRIES , inArgs , outArgs ) ; } catch ( WBEMException e ) { _log . error ( "EMCRemoveSFSEntries -- WBEMException: " , e ) ; } }
remove emcsfsentry containing the groupsynchronized information . it would find the entry using the clone / snapshot replication group name and source replication group name , then remove it . this operation is necessary before deleting an attached clone / snaphost replication group .
