> For the complete documentation index, see [llms.txt](https://docs.teranode.group/nchain-event/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.teranode.group/nchain-event/linked-records/api-workflow/delete-link-record.md).

# 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 %}
