Reset device to factory defaults and remove all private data.
ES6
const result = await TrezorConnect.wipeDevice(params);
CommonJS
TrezorConnect.wipeDevice(params).then(function(result) {
});
Optional common params
Common parameter useEmptyPassphrase
- is set to true
Common parameter allowSeedlessDevice
- is set to true
TrezorConnect.wipeDevice();
{
success: true,
payload: {
message: 'Device wiped'
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}