Use Tablestore SDK for Python to delete a table and its data.
Prerequisites
Install the Tablestore SDK for Python and initialize a client.
If the table has search indexes, delete the search indexes first.
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) |
|
The name of the table. |