すべてのプロダクト
Search
ドキュメントセンター

Tablestore:Lastpoint インデックスの削除

最終更新日:Sep 30, 2026

Tablestore SDK for Go を使用して、ソースの時系列テーブルやそのデータを削除することなく、Lastpoint インデックスを削除します。

注意事項

  • Lastpoint インデックス機能には、Tablestore SDK for Go V1.7.15 以降が必要です。この機能を使用する前に、Tablestore SDK for Go V1.7.15 以降を入手していることを確認してください。

  • Lastpoint インデックスを削除する前に、お使いのアプリケーションでそのインデックスが使用されなくなったことを確認してください。

  • 削除された Lastpoint インデックスは復元できません。操作は慎重に行ってください。

前提条件

パラメーター

パラメーター

説明

timeseriesTableName

時系列テーブルの名前。

lastpointIndexName

Lastpoint インデックスの名前。

例

次のサンプルコードは、時系列テーブル「test_timeseries_table」に作成された Lastpoint インデックス「last_point_index」を削除する例です。

func deleteTimeseriesLastpointIndex(client *tablestore.TimeseriesClient) {
	request := tablestore.NewDeleteTimeseriesLastpointIndexRequest("test_timeseries_table", "last_point_index")
	_, err := client.DeleteTimeseriesLastpointIndex(request)
	if err != nil {
		log.Fatal(err)
	}
}