全部產品
Search
文件中心

Tablestore:刪除資料表

更新時間:Aug 05, 2026

使用 Python SDK 刪除資料表及其資料。

前提條件

功能說明

調用 delete_table 方法刪除指定資料表。刪除資料表時,其二級索引會一併刪除。

def delete_table(self, table_name)
重要

刪除資料表會永久刪除表中資料,且無法恢複。請謹慎操作。

以下樣本刪除 example_table。

client.delete_table("example_table")

參數說明

delete_table 方法包含以下參數。

名稱

類型

說明

table_name(必選)

str

資料表名稱。