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

# NFC Wallet SDKをリセットする

## 概要

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

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

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

SDK を再初期化するとウォレット ID が変更されます。リセット前に作成されたトークンはサーバー側で孤立トークンになる可能性があります。それらは新しいカードのトークン化を実行したときに削除されることがあります（プロセス名： **tokens cleanup**).
{% endhint %}

リセット後、次回の初期化時に SDK は新しいウォレット ID を割り当てます。詳細は [Retrieve the wallet ID](/nfc-wallet-sdk-ios/ja/get-started/configuration/3.-initialization.md#retrieving-the-wallet-id).

{% hint style="info" %}
NFC Wallet SDK をリセットした後、次を実行してください： [ウォレットを登録する](/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/enroll-wallet.md) 新しいトークン化を行う前に。
{% endhint %}

## SDK統合

呼び出す `TSHPay.shared.reset()` NFC Wallet SDK によって保存されたすべてのデータを削除するために。

```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 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/ja/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.
