# DataConnections.dispose Method

> DataConnections.dispose method in the TX Sheet Control JavaScript API for the browser: Stops polling and cancels all queries.

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

---

Stops polling and cancels all queries. This instance cannot be reused.

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

### Syntax

```javascript
owner.dispose()
```

This overload has no parameters.

### Return Value

`void`.

### Examples

Pass an existing DataConnections from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

```javascript
function applyDataConnectionsDispose(dataConnections) {
    dataConnections['dispose']();
}
```

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

- [DataConnections Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dataconnections/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [DataConnections.bind Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dataconnections/bind-method/llms-full.txt)
- **Next:** [DataConnections.onChange Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dataconnections/onchange-method/llms-full.txt)
