All Products
Search
Document Center

Tablestore:Delete an analytical store

Last Updated:Apr 29, 2026

Call the DeleteTimeseriesAnalyticalStore operation to delete an analytical store when you no longer need it to store and analyze time series data.

Prerequisites

Before you begin, ensure that you have:

Parameters

Parameter

Description

timeseriesTableName

The name of the time series table.

analyticalStoreName

The name of the analytical store.

dropMappingTable

Specifies whether to delete the SQL mapping table associated with the analytical store. Valid values:

  • false (default): does not delete the SQL mapping table associated with the analytical store.

  • true: deletes the SQL mapping table associated with the analytical store.

Example

The following example deletes the test_analytical_store analytical store from the test_timeseries_table time series table, including the associated SQL mapping table.

public void deleteAnalyticalStore(TimeseriesClient client) {
    // Specify the names of the time series table and analytical store.
    DeleteTimeseriesAnalyticalStoreRequest request = new DeleteTimeseriesAnalyticalStoreRequest("test_timeseries_table", "test_analytical_store");
    request.setDropMappingTable(true);
    client.deleteTimeseriesAnalyticalStore(request);
}