> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/additional-features/reset-the-nfc-wallet-sdk.md).

# Reset the NFC Wallet SDK

## Overview

Resetting the NFC Wallet SDK deletes all data stored by the SDK on the device.

This includes items managed by the SDK, such as digital cards and payment credentials.

{% hint style="warning" %}
Reset is local only. It does not call any server APIs. Any tokens that already exist on the server side are not deleted.

After you reinitialize the SDK, the wallet ID changes. Tokens created before the reset can become orphan tokens on the server side. They may be deleted when you run Tokenization for a new card (in process called **tokens cleanup**).
{% endhint %}

After a reset, the SDK assigns a new wallet ID at the next initialization. See [Retrieve the wallet ID](/nfc-wallet-sdk-ios/get-started/configuration/3.-initialization.md#retrieving-the-wallet-id).

{% hint style="info" %}
After you reset the NFC Wallet SDK, run [Enroll wallet](/nfc-wallet-sdk-ios/implement-nfc-wallet/enroll-wallet.md) before any new Tokenization.
{% endhint %}

## SDK integration

Call `TSHPay.shared.reset()` to delete all data stored by the NFC Wallet SDK.

```swift
func resetSDK() async {
    do {
        try await TSHPay.shared.reset()
    } catch {
        // Handle the error.
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/additional-features/reset-the-nfc-wallet-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
