Cannot Save and Delete Data from Preferences in the Same Function

removeKey() ends the preferences..

and you can’t begin it twice..

if it’s already started it exits begin..

bool Preferences::begin(const char *name, bool readOnly, const char *partition_label) {
  if (_started) {
    return false;
  }

source code..

~q