# Javascript: FootnoteCollection.remove Method

> Removes a footnote from a Text Control document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 32.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: FootnoteCollection.remove Method
- **414 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/remove-method/llms-full.txt

---

### Description

Removes a footnote from a Text Control document.

### Syntax

```javascript
<void> FootnoteCollection.remove(<Footnote> footnote, [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| footnote | Specifies the footnote to remove. |
| callback | Optional. Receives true, if the footnote could be removed and false otherwise. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `FootnoteCollection.remove` in a practical document-editing workflow. It removes a footnote from a Text Control document.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function remove(footnote) {
    TXTextControl.footnotes.remove(
        footnote,
        function(result) {
            if (result) {
                console.log("remove is available.");
            } else {
                console.warn("remove is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: FootnoteCollection.getStartNumber Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/getstartnumber-method/llms-full.txt)
- **Next:** [Javascript: FootnoteCollection.setHighlightMode Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/footnotecollection/sethighlightmode-method/llms-full.txt)
