# Delete Link Record §

{% hint style="info" %}
This does not actually delete a link location on the blockchain. Blockchain records cannot be changed. Instead, it creates a new empty record that prevents any further updates to the current link location. A deleted link location cannot be updated further.
{% endhint %}

{% hint style="warning" %}
The record will be submitted to the blockchain asynchronously.
{% endhint %}

<figure><img src="/files/w09vjxByQj8tm33h79n8" alt="" width="375"><figcaption></figcaption></figure>

1. The record owner deletes the previous link location via Event
2. The result is the new link Location of an empty record on the blockchain
3. The record owner stores the new link Location for later processing
4. Ideally, the record owner should check the status of the new link location

#### **Example** **code:**

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST $URL/api/v1/linkedrecords/$LOC/delete \
     -H "x-api-key: $KEY" \
     -H "accept: text/plain"
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const response = await fetch('${url}/api/v1/linkedrecords/${loc}/delete', {
  method: 'POST',
  headers: {
    'x-api-key': '$KEY',
    'accept': 'text/plain'
  }
});
```

{% endtab %}
{% endtabs %}

#### **Example** cURL **response:**

```json
{
  "txId": "880ea79ee5728333....390cdecd1a9686b4bd"
}
```

{% hint style="info" %}
The response includes a location that can be used in subsequent commands.
{% endhint %}

{% tabs %}
{% tab title="cURL" %}

```bash
LOC=880ea79ee5728333....390cdecd1a9686b4bd
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const data = await response.json();
const loc2 = data.txId;
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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.teranode.group/nchain-event/linked-records/api-workflow/delete-link-record.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.
