# TableDelete Method

> Deletes a complete table from the document by its identifier, or with zero the selected table or the table at the input position; returns True or False.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TableDelete Method
- **269 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledelete-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledelete-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledelete-method/llms-full.txt

---

This method can be used to delete a complete table from the document.

Introduced: 19.0.

### Syntax

```vbscript
TXTextControl.TableDelete TableId
```

### Parameters

| Parameter | Description |
|---|---|
| TableId | Specifies the table's identifier. This must be the value returned from the [TableInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsert-method/llms-full.txt) method. If this parameter is set to zero, the currently selected table or the table at the text input position is deleted. |

### Return Value

The return value is True, if the specified table could be deleted. Otherwise, it is False. False is returned, if the specified table id is invalid or there is no table at the text input position.

### Data Types

| Name | Data type |
|---|---|
| TableId | Integer |
| Return value | Boolean |

### See Also

- [Formatting Text by using Number Formats](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/number-formats/llms-full.txt)
- [Tables](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/llms-full.txt)
- [Using Formulas in Table Cells](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/formulas/llms-full.txt)
- [Programming Category: Tables](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms-full.txt)

---

## Nearby

- **Previous:** [TableCreated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecreated-event/llms-full.txt)
- **Next:** [TableDeleteColumn Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeletecolumn-method/llms-full.txt)
