/** * Remove all contained SMTP settings * * @return {@link EChange#CHANGED} if a removal was performed. */ @Nullable public EChange removeAllSettings () { // Get all available settings IDs final ICommonsSet <String> aAllIDs = m_aRWLock.readLocked ( () -> m_aMap.copyOfKeySet ()); // Batch remove all settings EChange eChange = EChange.UNCHANGED; beginWithoutAutoSave (); try { for (final String sID : aAllIDs) eChange = eChange.or (removeSettings (sID)); } finally { endWithoutAutoSave (); } return eChange; }