How To Delete A Preferences Namespace In Arduino?

Use `preferences.begin(“namespace”, false);`

Call `preferences.clear();` to delete all keys in that namespace

Call `preferences.end();`

If you need to remove the namespace data from flash completely, erase the NVS partition or perform a full flash erase

Example:

`Preferences preferences;`

`preferences.begin(“myspace”, false);`

`preferences.clear();`

`preferences.end();`

Suggested for You

Trending Today