---
sidebar_position: 11
description: Clear table and other functions to work with SQLite in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, SQLite]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Clear table
Clears the database table
`Function ClearTable(Val Table, Val Connection = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Table | --table | String | ✔ | Table name |
| Connection | --db | String, Arbitrary | ✖ | Existing connection or database path |
Returns: Map Of KeyAndValue - Result of query execution
```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\bayse\AppData\Local\Temp\v8_6B23_336.sqlite";
Table = "test";
Result = OPI_SQLite.ClearTable(Table, Base);
```
```bash
oint sqlite ClearTable \
--table "test" \
--db "C:\Users\Administrator\AppData\Local\Temp\0rltbbruj1o.sqlite"
```
```batch
oint sqlite ClearTable ^
--table "test" ^
--db "C:\Users\Administrator\AppData\Local\Temp\0rltbbruj1o.sqlite"
```
```json title="Result"
{
"result": true
}
```