All Products
Search
Document Center

Tablestore:Delete a Lastpoint index

Last Updated:Apr 09, 2025

If you no longer want to use a Lastpoint index to obtain data of the latest point in time in time series in a time series table, you can call the DeleteTimeseriesLastpointIndex operation to delete the Lastpoint index.

Usage notes

  • Tablestore SDK for Java V5.17.1 or later supports the Lastpoint index feature. Before you use the Lastpoint index feature, make sure that Tablestore SDK for Java V5.17.1 or later is obtained. For information about the version history of Tablestore SDK for Java, see Version history of Tablestore SDK for Java.

  • Before you delete a Lastpoint index, make sure that the Lastpoint index is not used in your business.

  • A deleted Lastpoint index cannot be recovered. Proceed with caution.

Prerequisites

Parameters

Parameter

Description

timeseriesTableName

The name of the time series table.

lastpointIndexName

The name of the Lastpoint index.

Example

The following sample code provides an example on how to delete a Lastpoint index named last_point_index that is created for a time series table name timeseries_table:

public void deleteTimeseriesLastpointIndex(TimeseriesClient client) {
    DeleteTimeseriesLastpointIndexRequest request = new DeleteTimeseriesLastpointIndexRequest("timeseries_table", "last_point_index");
    client.deleteTimeseriesLastpointIndex(request);
}