delete_features
Deletes rows from an ArcGIS Pro layer or table using a SQL where clause, with optional edit-session handling, immediate saving, and delete-all confirmation.
Instructions
Delete rows matching a where clause. Switches editing on if the project requires it.
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_name": "<layer_name>"
},
"name": "delete_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | No | SQL where clause selecting rows to delete. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| save_edits | No | Commit the edits immediately instead of leaving them pending. | |
| allow_delete_all | No | Required confirmation when no where clause is given. | |
| use_edit_session | No | Wrap in an edit session. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |