evadb.EvaDBCursor.drop_index#

EvaDBCursor.drop_index(index_name: str, if_exists: bool = True) EvaDBQuery[source]#

Drop an index in the database.

Parameters:
  • index_name (str) โ€“ Name of the index to be dropped.

  • if_exists (bool) โ€“ If True, do not raise an error if the index does not already exist. If False, raise an error.

Returns:

The EvaDBQuery object representing the DROP INDEX.

Return type:

EvaDBQuery

Examples

Drop the index with name โ€˜faiss_indexโ€™

>>> conn.drop_index("faiss_index", if_exists = True)