You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/apps/management/wipe_device.py

15 lines
322 B

import storage
from trezor.messages.Success import Success
from trezor.ui.layouts import confirm_wipe
from .apply_settings import reload_settings_from_storage
async def wipe_device(ctx, msg):
await confirm_wipe(ctx)
storage.wipe()
reload_settings_from_storage()
return Success(message="Device wiped")