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
An analytical store is created. For more information, see Create an analytical store.
A client is initialized. For more information, see Initialize a Tablestore client.
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:
|
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);
}