# drop_table

> **Function** in `langchain_db2`

📖 [View in docs](https://reference.langchain.com/python/langchain-db2/db2vs/drop_table)

Drop a table from the database.

## Signature

```python
drop_table(
    client: Connection,
    table_name: str,
) -> None
```

## Description

??? example "Example"

```python
from langchain_db2.db2vs import drop_table

drop_table(
    client=db_client,  # ibm_db_dbi.Connection
    table_name="TABLE_NAME",
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `client` | `Connection` | Yes | The `ibm_db_dbi` connection object |
| `table_name` | `str` | Yes | The name of the table to drop |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-ibm/blob/68e9b09f8cbc8d2310e57a6a7eb51cde0956a3b0/libs/langchain-db2/langchain_db2/db2vs.py#L140)