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

# Eliminar la vinculación desde la aplicación del comercio

Eliminar una vinculación de dispositivo de una aplicación del comerciante usando el SDK de Thales.

## Flujo

<figure><img src="/files/392fe55b29e0496282769307565923a20955d2ef" alt=""><figcaption><p>Flujo de eliminación de vinculación iniciado por la aplicación.</p></figcaption></figure>

<table><thead><tr><th width="100">Paso</th><th>Descripción</th></tr></thead><tbody><tr><td>1</td><td>El <strong>aplicación del comerciante</strong> llama al SDK de Thales para eliminar la vinculación.</td></tr><tr><td>2–4</td><td>La solicitud se reenvía al backend de Thales, <strong>VTS</strong>, y el <strong>backend del emisor</strong>. Cada sistema elimina los datos de vinculación del token y el dispositivo.</td></tr><tr><td>5</td><td>El backend de Thales notifica al <strong>backend del comerciante o del PSP</strong> que la vinculación se eliminó.</td></tr></tbody></table>

## Integración del SDK

{% tabs %}
{% tab title="Android" %}
{% hint style="warning" %}
Esta llamada es asíncrona.

Invoca el `runOnUiThread(Runnable)` callback cuando necesites actualizar la interfaz de usuario.
{% endhint %}

Llama a `removeBinding()` y gestiona el resultado en `onSuccess` o `onError`.

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

            @Override
            public void onSuccess() {
                // Actualizar el estado local de la vinculación si es necesario
            }
        });
```

{% endtab %}

{% tab title="iOS" %}
{% hint style="warning" %}
Esta llamada es asíncrona.

Invoca el `DispatchQueue.main.async` callback cuando necesites actualizar la interfaz de usuario.
{% endhint %}

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

// 1. Iniciar la eliminación de la vinculación
visaCTFHelper.removeBinding(forVProvisionedTokenID: vProvisionedTokenID,
                            correlationID: correlationID) { error in
    // 2. Resultado de la eliminación de la vinculación
    if error == nil {
        // Actualizar el estado local de la vinculación si es necesario
    } else {
        // Gestionar 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/es/ctf-y-daf-de-visa/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.
