Tüm Ürünler
Search
Belge Merkezi

Tablestore:Delete a secondary index

Son Güncelleme:Oct 02, 2026

Tablestore SDK for PHP kullanarak, veri tablosunu veya verilerini etkilemeden genel veya yerel bir ikincil dizini silin.

Dikkat Edilmesi Gerekenler

Silinen bir ikincil dizin geri alınamaz. Dizini yeniden kullanmak için yeni bir ikincil dizin oluşturun.

API işlemi

/**
 * Delete a global secondary index.
 * @api
 *
 * @param [] $request
 *            The request parameters, including the name of the data table.
 * @return [] The response.
 * @throws OTSClientException Thrown when a parameter error occurs or the Tablestore server returns a verification error.
 * @throws OTSServerException Thrown when the Tablestore server returns an error.
 * @example "src/examples/DropIndex.php"
 */
public function dropIndex(array $request)

Parametreler


Parametre


Açıklama


table_name


Veri tablosunun adı.


index_name


Dizin tablosunun adı.

Örnekler

Aşağıdaki örnekte bir ikincil dizin silinmektedir:

$request = array(
    'table_name' => '<TABLE_NAME>', // The name of the data table.
    'index_name' => '<INDEX_NAME>'  // The name of the index table.
);
$otsClient->dropIndex($request);