1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-13 10:08:08 +00:00
trezor-firmware/core/src/apps/management/wipe_device.py

15 lines
322 B
Python

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")