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

> 包含已执行 drop table、但其数据尚未清理的表信息的系统表

# system.dropped_tables

<div id="description">
  ## 描述
</div>

包含已执行 drop table 操作但尚未完成数据清理的表的信息。

<div id="columns">
  ## 列
</div>

* `index` ([UInt32](/zh/reference/data-types/int-uint)) — marked\_dropped\_tables 队列中的索引。
* `database` ([String](/zh/reference/data-types/string)) — 数据库名称。
* `table` ([String](/zh/reference/data-types/string)) — 表名称。
* `uuid` ([UUID](/zh/reference/data-types/uuid)) — 表的 UUID。
* `engine` ([String](/zh/reference/data-types/string)) — 表引擎名称。
* `metadata_dropped_path` ([String](/zh/reference/data-types/string)) — metadata\_dropped 目录中表元数据文件的路径。
* `table_dropped_time` ([DateTime](/zh/reference/data-types/datetime)) — 计划下次尝试删除表数据的时间。通常为表被删除的时间加上 `database_atomic_delay_before_drop_table_sec`。

此表仅列出从 `Atomic` 数据库中删除的表。对于这些表，`table_dropped_time` 通常由 [`database_atomic_delay_before_drop_table_sec`](/zh/reference/settings/server-settings/settings/other#database_atomic_delay_before_drop_table_sec) 决定。对于 ClickHouse Cloud 中的 `Shared` 数据库，恢复期则由 [`database_shared_drop_table_delay_seconds`](/zh/reference/settings/session-settings/database#database_shared_drop_table_delay_seconds) 控制，默认值为 8 小时；从 `Shared` 数据库中删除的表不会出现在 `system.dropped_tables` 中。

<div id="example">
  ## 示例
</div>

以下示例说明如何获取 `dropped_tables` 的相关信息。

```sql theme={null}
SELECT *
FROM system.dropped_tables\G
```

```text theme={null}
Row 1:
──────
index:                 0
database:              default
table:                 test
uuid:                  03141bb2-e97a-4d7c-a172-95cc066bb3bd
engine:                MergeTree
metadata_dropped_path: /data/ClickHouse/build/programs/data/metadata_dropped/default.test.03141bb2-e97a-4d7c-a172-95cc066bb3bd.sql
table_dropped_time:    2023-03-16 23:43:31
```
