# WorkbookCalculation.removeFunction Method

> WorkbookCalculation.removeFunction method in the TX Sheet Control JavaScript API for the browser: Removes a registered callback.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > WorkbookCalculation > WorkbookCalculation.removeFunction Method
- **356 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/removefunction-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/removefunction-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/removefunction-method/llms-full.txt

---

Removes a registered callback; subsequent formulas report #NAME? if no built-in function exists.

Owner: [WorkbookCalculation](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```javascript
owner.removeFunction(name)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `name` | `string` | No | Name validated in the owning collection or document scope. |

### Return Value

`boolean`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```javascript
function applyWorkbookCalculationRemoveFunction(book) {
    const workbookCalculation = book.calculation;
    const result = workbookCalculation.removeFunction('DOUBLE');
    return result;
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [WorkbookCalculation Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/llms-full.txt)
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)

---

## Nearby

- **Previous:** [WorkbookCalculation.registerFunction Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/registerfunction-method/llms-full.txt)
- **Next:** [WorkbookCalculation.setExternalWorkbook Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbookcalculation/setexternalworkbook-method/llms-full.txt)
