All Products
Search
Document Center

Tablestore:Menghapus indeks Lastpoint

Last Updated:Sep 30, 2026

Gunakan Tablestore SDK for Go untuk menghapus indeks Lastpoint tanpa menghapus tabel deret waktu sumber atau datanya.

Catatan penggunaan

  • Fitur indeks Lastpoint memerlukan Tablestore SDK for Go versi V1.7.15 atau lebih baru. Pastikan Anda telah menginstal Tablestore SDK for Go versi V1.7.15 atau yang lebih baru sebelum menggunakan fitur ini.

  • Sebelum menghapus indeks Lastpoint, pastikan indeks tersebut tidak lagi digunakan oleh aplikasi Anda.

  • Indeks Lastpoint yang telah dihapus tidak dapat dipulihkan. Lanjutkan dengan hati-hati.

Prasyarat

Parameter

Parameter

Description

timeseriesTableName

Nama tabel deret waktu.

lastpointIndexName

Nama indeks Lastpoint.

Contoh

Kode contoh berikut menunjukkan cara menghapus indeks Lastpoint bernama last_point_index yang dibuat untuk tabel deret waktu timeseries_table:

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