Delete Operations

The delete operations affect data already inserted into Milvus. Think twice before you delete.

Parameters marked with `*` are specific to Python SDK, and those marked with `**` are specific to Node.js SDK.

Drop an index

Drop the index of a specified field in a specified collection:

Current release of Milvus only supports building and dropping index on vector field. Future version of Milvus will supports these operations on scalar field.
>>> collection.drop_index()
await milvusClient.indexManager.dropIndex({
  collection_name: COLLECTION_NAME,
});
Detailed Description
Parameter Description Note
collection_name** Name of the collection to drop index from Mandatory

Drop a partition

Remove a partition and all vectors under it:

>>> collection.drop_partition(partition_name=partition_name)
await milvusClient.partitionManager.dropPartition({
  collection_name: COLLECTION_NAME,
  partition_name: PARTITION_NAME,
});
Detailed Description
Parameter Description Note
partition_name Name of the partition to drop Mandatory
collection_name** Name of the collection to drop partition from Mandatory

Drop a collection

When you no longer need a collection, you can delete it.

>>> collection.drop()
await milvusClient.collectionManager.dropCollection({
  collection_name: COLLECTION_NAME,
});
Detailed Description
Parameter Description Note
collection_name** Name of the collection to drop Mandatory

Delete entities

This feature is still under development and will be available when a stable version of Milvus 2.0 is released.

Is this page helpful?
Scored Successfully!