Delete Features
delete_featuresRemove features from a QGIS layer by providing feature IDs or an expression filter. Specify either fids list or expression string to target deletions.
Instructions
Delete features by feature IDs or expression filter. Provide either fids (list of ints) or expression (string), not both.
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 |