osm_delete_element
Delete a node, way, or relation from OpenStreetMap using its current version and changeset; the request fails if the element is still referenced by another way or relation.
Instructions
Delete an element. Fails with 412 if it is still referenced by a way or relation. Nodes need their current lat/lon. Returns the new version. Edits are public and attributed to the authenticated OSM user. Follow the OSM editing guidelines; use OSM_ENV=dev to practise on the sandbox server.
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": {
"changeset_id": "<changeset_id>",
"element": "<element>"
},
"name": "osm_delete_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | ||
| changeset_id | Yes |