📅  最后修改于: 2022-03-11 14:52:33.598000             🧑  作者: Mango
SharedPreferences mySPrefs = PreferenceManager.getDefaultSharedPreferences(this);
SharedPreferences.Editor editor = mySPrefs.edit();
editor.remove(key);
editor.commit();