In require("Storage").list you can supply a regular expression
require("Storage").list
So you can enter some code like: require("Storage").list(/^activepedom/).forEach(require("Storage").erase)
require("Storage").list(/^activepedom/).forEach(require("Storage").erase)
I'd recommend you enter just require("Storage").list(/^activepedom/) first so you can see a list of the files that are going to be deleted though ;)
require("Storage").list(/^activepedom/)
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In
require("Storage").list
you can supply a regular expressionSo you can enter some code like:
require("Storage").list(/^activepedom/).forEach(require("Storage").erase)
I'd recommend you enter just
require("Storage").list(/^activepedom/)
first so you can see a list of the files that are going to be deleted though ;)