Delete Features
delete_featuresRemove specific features from a QGIS layer by entering their feature IDs or a filter expression. Select one method, then get the confirmed count of deleted features.
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 |