This chapter introduces how to delete scalar index.
curl -u shiva:shiva -XDELETE 'localhost:8902/hippo/v1/{table}/_drop_scalar_index?database_name={database_name}&pretty' -H 'Content-Type: application/json' -d'{
"index_name" : "index"
}';
Result:
{
"acknowledged" : true
}
Parameter description:
Parameters | Description | Required |
---|---|---|
table | Table name, such as "book" created in this example | Yes |
database_name | Database where the table is located | No, defaults to "default" database |
index_name | Index to be deleted. If users would like to delete multiple indexes, they should list all names as: ["a","b","c"] | Yes |