> 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/merchant-tokenization/ja/visa-ctf-to-daf/implement-ctf-and-daf/delete-binding/delete-binding-from-merchant-application.md).

# 加盟店アプリケーションからバインディングを削除

Thales SDK を使用して、加盟店アプリケーションからデバイスバインディングを削除します。

## フロー

<figure><img src="/files/974337531bface82ff6778d83a4a11bc1546d9ed" alt=""><figcaption><p>アプリ起点のバインディング削除フロー。</p></figcaption></figure>

<table><thead><tr><th width="100">ステップ</th><th>説明</th></tr></thead><tbody><tr><td>1</td><td>その <strong>加盟店アプリケーション</strong> バインディングを削除するために Thales SDK を呼び出します。</td></tr><tr><td>2～4</td><td>リクエストは Thales バックエンドに転送され、 <strong>VTS</strong>、そして <strong>イシュアのバックエンド</strong>。各システムはトークンとデバイスのバインディングデータを削除します。</td></tr><tr><td>5</td><td>Thales バックエンドは <strong>加盟店または PSP バックエンド</strong> にバインディングが削除されたことを通知します。</td></tr></tbody></table>

## SDK 統合

{% tabs %}
{% tab title="Android" %}
{% hint style="warning" %}
この呼び出しは非同期です。

次を呼び出します `runOnUiThread(Runnable)` UI を更新する必要がある場合にコールバックを使用してください。
{% endhint %}

呼び出し `removeBinding()` を呼び出し、結果を `onSuccess` または `onError`.

```java
visaCTFHelper.removeBinding(correlationId, 
                            vProvisionTokenId, 
                            new RemoveBindingListener() {
            @Override
            public void onError(TMGClientException exception) { 
                // エラーを処理
            }

            @Override
            public void onSuccess() {
                // 必要に応じてローカルのバインディング状態を更新
            }
        });
```

{% endtab %}

{% tab title="iOS" %}
{% hint style="warning" %}
この呼び出しは非同期です。

次を呼び出します `DispatchQueue.main.async` UI を更新する必要がある場合にコールバックを使用してください。
{% endhint %}

```swift
let vProvisionedTokenID: String = ""
let correlationID: String = ""

// 1. バインディング削除を開始
visaCTFHelper.removeBinding(forVProvisionedTokenID: vProvisionedTokenID,
                            correlationID: correlationID) { error in
    // 2. バインディング削除結果
    if error == nil {
        // 必要に応じてローカルのバインディング状態を更新
    } else {
        // エラーを処理
    }   
}
```

{% endtab %}
{% endtabs %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/merchant-tokenization/ja/visa-ctf-to-daf/implement-ctf-and-daf/delete-binding/delete-binding-from-merchant-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
