Delete a time series table
Updated at:
Copy as MD
Delete a time series table by calling the DeleteTimeseriesTable operation.
Usage notes
-
The TimeSeries model requires Tablestore SDK for Python V6.1.0 or later.
NoteFor more information, see Python SDK version history.
Deleting a time series table is permanent and cannot be undone. 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 to delete. |
Examples
The following example deletes a time series table:
try:
# Delete the time series table.
ots_client.delete_timeseries_table('')
print("delete timeseries table succeeded.")
except Exception as e:
# Handle exceptions if the deletion fails.
print("delete timeseries table failed. %s" % e)
Is this page helpful?