I want to clear all data from shared preferences.I tried the below code
but it's not working.What wrong am I doing?

```
SharedPreferences preferences = context.getSharedPreferences("PREFERENCE", 0);
SharedPreferences.Editor editor = preferences.edit();
editor.clear();
editor.commit();

```