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

# Delete binding from merchant application

Delete a device binding from a merchant application using the Thales SDK.

## Flow

<figure><img src="/files/c3GkgkuZljOfDh5Zyohn" alt=""><figcaption><p>App-initiated binding deletion flow.</p></figcaption></figure>

<table><thead><tr><th width="100">Step</th><th>Description</th></tr></thead><tbody><tr><td>1</td><td>The <strong>merchant application</strong> calls the Thales SDK to delete the binding.</td></tr><tr><td>2–4</td><td>The request is forwarded to the Thales backend, <strong>VTS</strong>, and the <strong>issuer backend</strong>. Each system deletes binding data for the token and device.</td></tr><tr><td>5</td><td>The Thales backend notifies the <strong>merchant or PSP backend</strong> that the binding was deleted.</td></tr></tbody></table>

## SDK integration

{% tabs %}
{% tab title="Android" %}
{% hint style="warning" %}
This call is asynchronous.

Invoke the `runOnUiThread(Runnable)` callback when you need to update the UI.
{% endhint %}

Call `removeBinding()` and handle the result in `onSuccess` or `onError`.

```java
visaCTFHelper.removeBinding(correlationId, 
                            vProvisionTokenId, 
                            new RemoveBindingListener() {
            @Override
            public void onError(TMGClientException exception) { 
                // Handle error
            }

            @Override
            public void onSuccess() {
                // Update local binding state if needed
            }
        });
```

{% endtab %}

{% tab title="iOS" %}
{% hint style="warning" %}
This call is asynchronous.

Invoke the `DispatchQueue.main.async` callback when you need to update the UI.
{% endhint %}

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

// 1. Start remove binding
visaCTFHelper.removeBinding(forVProvisionedTokenID: vProvisionedTokenID,
                            correlationID: correlationID) { error in
    // 2. Remove binding result
    if error == nil {
        // Update local binding state if needed
    } else {
        // Handle error
    }   
}
```

{% 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/visa-ctf-and-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.
