`TypeError: Prefs.delete is not a function`
I think you want to use `Prefs.reset` instead.
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/preferences/service.html#reset%28name%29