android clear specific sharedpreference value

Java
SharedPreferences preferences = getSharedPreferences("Mypref", 0);
preferences.edit().remove("text").commit();
Source

Also in Java: