Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions _includes/code/howto/manage-data.collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,4 +1105,15 @@
# END UpdateCollectionShards


# START DropVectorIndex
collection = client.collections.get("Article")

# Drop the vector index for a named vector
# This is a destructive operation — the index is removed from disk
result = collection.config.delete_vector_index(vector_name="title")

print(result) # True if successful
# END DropVectorIndex


client.close()
6 changes: 6 additions & 0 deletions _includes/feature-notes/drop-vector-index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:::caution Preview — added in `v1.37`

This is a preview feature. The API may change in future releases.

:::

10 changes: 10 additions & 0 deletions docs/weaviate/config-refs/indexing/vector-index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,16 @@ import MultiVectorSupport from "/_includes/multi-vector-support.mdx";

<MultiVectorSupport />

## Drop a vector index

import V137Preview from '/_includes/feature-notes/drop-vector-index.mdx';

<V137Preview/>

You can drop (delete) a vector index from a collection. This is a destructive, irreversible operation — the index data is removed from disk and cannot be rebuilt on the same collection. The vector data itself is preserved, but vector searches on the dropped index will no longer work.

See [How-to: Drop a vector index](../../manage-collections/vector-config.mdx#drop-a-vector-index) for code examples.

## Further resources

- [Concepts: Vector index](../../concepts/indexing/vector-index.md)
Expand Down
21 changes: 21 additions & 0 deletions docs/weaviate/manage-collections/vector-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,27 @@ Read more about index types & compression in:

</details>

## Drop a vector index

import V137Preview from '/_includes/feature-notes/drop-vector-index.mdx';

<V137Preview/>

Drop (delete) a vector index from a collection. This is a destructive, irreversible operation — the index data is removed from disk and cannot be rebuilt on the same collection. The vector data itself is preserved, but vector searches on the dropped index will no longer work.

Specify the named vector whose index to drop:

<Tabs className="code" groupId="languages">
<TabItem value="py" label="Python">
<FilteredTextBlock
text={PyCode}
startMarker="# START DropVectorIndex"
endMarker="# END DropVectorIndex"
language="py"
/>
</TabItem>
</Tabs>

## Property-level settings

Configure individual properties in a collection. Each property can have it's own configuration. Here are some common settings:
Expand Down
Loading