All Products
Search
Document Center

Tablestore:Menghapus search index

Last Updated:Aug 08, 2026

Gunakan Tablestore SDK for Go untuk menghapus search index yang tidak lagi diperlukan.

Prasyarat

Instal Tablestore Go SDK dan inisialisasi client.

Deskripsi

Panggil DeleteSearchIndex untuk menghapus search index dari tabel data. Penghapusan search index tidak menghapus data dalam tabel tersebut.

func (client *tablestore.TableStoreClient) DeleteSearchIndex(request *tablestore.DeleteSearchIndexRequest) (*tablestore.DeleteSearchIndexResponse, error)
_, err := client.DeleteSearchIndex(&tablestore.DeleteSearchIndexRequest{
    TableName: "example_table",
    IndexName: "example_index",
})
if err != nil {
    log.Fatal(err)
}

Parameter

Name

Type

Description

TableName (required)

string

Nama tabel data.

IndexName (required)

string

Nama search index yang akan dihapus.