public void removeFence(@NonNull String id){
  Set<String> fenceIdSet=mPrefs.getStringSet(mPrefix + FENCE_ID_SET_KEY,null);
  if ((fenceIdSet != null) && fenceIdSet.contains(id)) {
    SharedPreferences.Editor editor=mPrefs.edit();
    editor.remove(mPrefix + id);
    fenceIdSet.remove(id);
    editor.putStringSet(FENCE_ID_SET_KEY,fenceIdSet);
    editor.apply();
  }
}

public void removeFence ( @ NonNull String id ) { Set < String > fenceIdSet = mPrefs . getStringSet ( mPrefix + FENCE_ID_SET_KEY , null ) ; if ( ( fenceIdSet != null ) && fenceIdSet . contains ( id ) ) { SharedPreferences . Editor editor = mPrefs . edit ( ) ; editor . remove ( mPrefix + id ) ; fenceIdSet . remove ( id ) ; editor . putStringSet ( FENCE_ID_SET_KEY , fenceIdSet ) ; editor . apply ( ) ; } }
remove a fence from the store based on its id
