> 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/ja/additional-features/reset-the-nfc-wallet-sdk.md). Agents can also search and read this documentation through its [MCP server](https://docs.payments.thalescloud.io/~gitbook/mcp).

# NFC Wallet SDK をリセットする

## 概要

NFC Wallet SDKをリセットすると、SDKがデバイスに保存したすべてのデータが削除されます。

これには、デジタルカードや支払い資格情報など、SDKが管理する項目が含まれます。

{% hint style="warning" %}
リセットはローカルでのみ行われます。サーバーAPIは呼び出されません。サーバー側にすでに存在するトークンは削除されません。

SDKを再初期化すると、ウォレットIDが変わります。リセット前に作成されたトークンは、サーバー側で孤立したトークンになることがあります。新しいカードのトークナイゼーションを実行すると削除される場合があります（この処理を **トークンのクリーンアップ**).
{% endhint %}

リセット後、次回の初期化時にSDKによって新しいウォレットIDが割り当てられます。詳しくは、 [ウォレットIDの取得](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/get-started/configuration/3.-initialization.md#retrieving-the-wallet-id).

{% hint style="info" %}
NFC Wallet SDKをリセットした後、新たなトークナイゼーションを行う前に、 [ウォレットの登録](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/enroll-wallet.md) を実行してください。
{% endhint %}

## SDKの統合

すべてのデータを削除するには、 `TSHPay.shared.reset()` を呼び出します。

```swift
func resetSDK() async {
    do {
        try await TSHPay.shared.reset()
    } catch {
        // エラーを処理します。
    }
}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
