# Javascript: TableBaseCollection.removeAtInputPosition Method

> Removes the table at the current input position.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TableBaseCollection.removeAtInputPosition Method
- **396 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablebasecollection/removeatinputposition-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablebasecollection/removeatinputposition-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablebasecollection/removeatinputposition-method/llms-full.txt

---

### Description

Removes the table at the current input position.

### Syntax

```javascript
<void> TableBaseCollection.removeAtInputPosition([<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Optional. Receives whether the table could removed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableBaseCollection.removeAtInputPosition` in a practical document-editing workflow. It removes the table at the current input position.

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

function removeAtInputPosition(tableBases) {
    tableBases.removeAtInputPosition(
        function(result) {
            if (result) {
                console.log("remove at input position is available.");
            } else {
                console.warn("remove at input position is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableBaseCollection.getItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablebasecollection/getitem-method/llms-full.txt)
- **Next:** [Javascript: TableBaseCollection.removeById Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablebasecollection/removebyid-method/llms-full.txt)
