All Products
Search
Document Center

Tablestore:Delete a time series table

Last Updated:Apr 18, 2025

You can delete a time series table by calling the DeleteTimeseriesTable operation.

Usage notes

  • The TimeSeries model is supported by Tablestore SDK for Python V6.1.0 and later. Make sure that you have obtained a correct version of Tablestore SDK for Python.

    Note

    For more information, see Version history of Tablestore SDK for Python.

  • After a time series table is deleted, it cannot be recovered. Proceed with caution.

Prerequisites

A Tablestore client is initialized. For more information, see Initialize a Tablestore client.

Parameters

Parameter

Description

timeseries_table_name

The name of the time series table.

Examples

The following sample code provides an example on how to delete a time series table:

try:
    # Call the operation to delete the time series table.
    ots_client.delete_timeseries_table('')
    print("delete timeseries table succeeded.")
except Exception as e:
    # If an exception is thrown, the deletion fails. Handle the exception.
    print("delete timeseries table failed. %s" % e)