Delete Features
delete_featuresDelete features from a QGIS layer by feature IDs or an expression filter, returning the requested and measured deleted counts.
Instructions
Delete features by feature IDs or expression filter. Provide either fids (list of ints) or expression (string), not both. Returns requested and the measured deleted count.
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": {
"layer_id": "<layer_id>"
},
"name": "delete_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fids | No | ||
| layer_id | Yes | ||
| expression | No |