All Products
Search
Document Center

Tablestore:Delete a table

Last Updated:Aug 04, 2026

Use Tablestore SDK for Python to delete a table and its data.

Prerequisites

Function description

Call the delete_table method to delete a table. Secondary indexes of the table are also deleted.

def delete_table(self, table_name)
Important

Deleting a table permanently deletes its data. The operation cannot be undone. Proceed with caution.

The following example deletes example_table.

client.delete_table("example_table")

Parameters

The delete_table method contains the following parameter.

Name

Type

Description

table_name (required)

str

The name of the table.