Purge wallet

Erase wallet's public and private keys.

This command deletes all wallet data, including public and private key.

This operation is irreversible.

This command can be disabled if wallet was created during card personalization with special config flag, that protect wallets from purging.


walletPublicKey <Data> The wallet's public key.

cardId <String> CID, Unique Tangem card ID number.

initialMessage <Message> [optional] This message will be shown in the NFC session dialog. Default: "Tap the card to your phone exactly as it shown above".


This command will return the SuccessResponse object in response.


let walletPublicKey = card.wallets[0].publicKey //Will purge the first wallet
let cardId = card.cardId

tangemSdk.purgeWallet(walletPublicKey: walletPublicKey, cardId: cardId) { result in
    switch result {
    case .success:
        print("The wallet deleted")
    case .failure(let error):

Last updated