> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> System table containing information about each detached table.

# system.detached_tables

<h2 id="description">
  Description
</h2>

Contains information about each detached table.

<h2 id="columns">
  Columns
</h2>

* `database` ([String](/reference/data-types)) — The name of the database the table is in.
* `table` ([String](/reference/data-types)) — Table name.
* `uuid` ([UUID](/reference/data-types)) — Table uuid (Atomic database).
* `metadata_path` ([String](/reference/data-types)) — Path to the table metadata in the file system.
* `is_permanently` ([UInt8](/reference/data-types)) — Table was detached permanently.

<h2 id="example">
  Example
</h2>

```sql theme={null}
SELECT * FROM system.detached_tables FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
database:                   base
table:                      t1
uuid:                       81b1c20a-b7c6-4116-a2ce-7583fb6b6736
metadata_path:              /var/lib/clickhouse/store/461/461cf698-fd0b-406d-8c01-5d8fd5748a91/t1.sql
is_permanently:             1
```
