delete_entities
Deletes matching entities from a Zilliz/Milvus collection using a scalar filter, optionally scoped to a database or partition.
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
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": {}
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster_id": "<cluster_id>",
"region_id": "<region_id>",
"collection_name": "<collection_name>",
"filter": "<filter>"
},
"name": "delete_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | ||
| db_name | No | ||
| region_id | Yes | ||
| cluster_id | Yes | ||
| partition_name | No | ||
| collection_name | Yes |