This API is available on Firefox OS for internal applications only.
The MozPowerManager.factoryReset()
method is used to reset the device to its factory state.
Warning: Using this method will erase all the user data.
Syntax
MozPowerManager.factoryReset();
Specifications
Not part of any specification.