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)