All Products
Search
Document Center

Tablestore:Delete an analytical store

Last Updated:Apr 24, 2025

When you no longer need to use an analytical store to store and analyze time series data, you can call the DeleteTimeseriesAnalyticalStore operation to delete the analytical store.

Prerequisites

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 sample code provides an example on how to delete the test_analytical_store analytical store that is created for the time series table named test_timeseries_table. In this example, the SQL mapping table associated with the analytical store is deleted.

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);
}