delete_entities
Remove entities from a Milvus vector database collection using filtering conditions or primary keys to manage data efficiently.
Instructions
Delete entities from a collection by filtering conditions or primary keys.
Args:
cluster_id: ID of the cluster
region_id: ID of the cloud region hosting the cluster
endpoint: The cluster endpoint URL. Can be obtained by calling describe_cluster and using the connect_address field
collection_name: The name of an existing collection
filter: A scalar filtering condition to filter matching entities. You can set this parameter to an empty string to skip scalar filtering. To build a scalar filtering condition, refer to Reference on Scalar Filters
db_name: The name of the target database. Pass explicit dbName or leave empty when cluster is free or serverless
partition_name: The name of a partition in the current collection. If specified, the data is to be deleted from the specified partition
Returns:
Dict containing the response
Example:
{
"code": 0,
"cost": 0,
"data": {}
}
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | ||
| region_id | Yes | ||
| endpoint | Yes | ||
| collection_name | Yes | ||
| filter | Yes | ||
| db_name | No | ||
| partition_name | No |