# Spreadsheet.destroy Method

> Spreadsheet.destroy method in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > Spreadsheet > Spreadsheet.destroy Method
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/spreadsheet/destroy-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/spreadsheet/destroy-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/spreadsheet/destroy-method/llms-full.txt

---

The destroy operation of Spreadsheet.

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

### Syntax

```typescript
destroy(): void
```

This overload has no parameters.

### Return Value

`void`.

### Examples

Pass an existing Spreadsheet 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.

```typescript
import type { Spreadsheet } from '@txtextcontrol/tx-sheet-control';

function applySpreadsheetDestroy(spreadsheet: Spreadsheet) {
    spreadsheet['destroy']();
}
```

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

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

---

## Nearby

- **Previous:** [Spreadsheet Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/spreadsheet/llms-full.txt)
- **Next:** [Spreadsheet.host Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/spreadsheet/host-property/llms-full.txt)
