Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (38 loc) · 700 Bytes

wipeDevice.md

File metadata and controls

44 lines (38 loc) · 700 Bytes

Wipe device

Reset device to factory defaults and remove all private data.

ES6

const result = await TrezorConnect.wipeDevice(params);

CommonJS

TrezorConnect.wipeDevice(params).then(function(result) {

});

Params

Optional common params
Common parameter useEmptyPassphrase - is set to true Common parameter allowSeedlessDevice - is set to true

Example

TrezorConnect.wipeDevice();

Result

{
    success: true,
    payload: {
        message: 'Device wiped'
    }
}

Error

{
    success: false,
    payload: {
        error: string // error message
    }
}