You need to enable JavaScript to run this app.
向量数据库VikingDB

向量数据库VikingDB

复制全文
索引(Index)
drop_index
复制全文
drop_index

概述

drop_index 用于删除指定数据集 Collection 的指定索引 Index。
异步调用使用async_drop_index接口,参数不变。

请求参数

参数

类型

是否必选

参数说明

collection_name

string

指定要删除索引所属的 Collection 名称。

  • 只能使用英文字母、数字、下划线_,并以英文字母开头,不能为空。
  • 长度要求:[1, 128]。
  • Collection 名称不能重复。

index_name

string

指定要删除的 Index 名称。

  • 只能使用英文字母、数字、下划线_,并以英文字母开头,不能为空。
  • 长度要求:[1, 128]。
  • 索引名称不能重复。

示例

请求参数

vikingdb_service.drop_index("example", "example_index")

# 异步调用
async def del_index():
    await vikingdb_service.async_drop_index("async", "async")
asyncio.run(del_index())

返回值

Python 调用执行上面的任务,执行成功无返回信息。

最近更新时间:2025.09.30 16:06:33
这个页面对您有帮助吗?
有用
有用
无用
无用