[[TranslatedPages]] = Delete = [[Image(source:/trunk/images/dialogs/delete.png)]] ''Keyboard shortcut:'' '''{{{D}}}''' '''Allows the user to delete nodes and other [wiki:/Help/Concepts/Object objects].''' [[TOC(inline)]] == Deleting objects == The user can click on an [wiki:/Help/Concepts/Object object], which gets deleted if possible. * If a node is not part of a way then the node gets deleted. * If a node is part of a way then the node gets deleted. * If the node was at the end of a way, the way gets shortened. * If the node was in the middle of the way, the way is changed that it runs between the remaining nodes. * If the user clicks on a way then the way and any associated nodes not used by anything else, get deleted. When '''{{{Alt}}}''' is held when using this tool the way and its' associated unused nodes are deleted. When '''{{{Shift}}}''' is held when using this tool, the segment you clicked is removed from the way, and the way split into two. When '''{{{Ctrl}}}''' is pressed when releasing the button, the [wiki:/Help/Concepts/Object objects] and all its references are deleted. The exact definition of ''all its references'' is: * If a node is deleted, the node and all ways and areas the node is part of are deleted as well. * If a way is deleted, only the way and no nodes are deleted. * If an area is deleted, only the area gets deleted. The following key shortcuts are defined: * If the user did not press '''{{{Ctrl}}}''' and the object has any references, the user is informed and nothing is deleted. '''Note:''' in some Linux desktop environment (e.g. KDE) the Alt-click event is captured to perform actions like dragging the window across the screen. To reclaim this combination to Josm you have to open the Control Center, click on Desktop, Window Behaviour, Actions and change the modifier key to something different than '''{{{Alt}}}'''. == Deleting objects being part of relations == #DeleteFromRelations If you delete an [wiki:/Help/Concepts/Object object] which is part of a [wiki:/Help/Concepts/Object relation] the [wiki:/Help/Concepts/Object object] has to be removed from the [wiki:/Help/Concepts/Object relation]. JOSM doesn't silently do so. Rather, the following confirmation dialog is displayed: [[Image(confirm-delete-from-relations.png)]] The entries in the displayed list indicate from which [wiki:/Help/Concepts/Object relations] (second column in the table) the [wiki:/Help/Concepts/Object object] (or the objects, if you delete more than one object) have to be removed. Click '''Cancel''' if you don't want to remove the [wiki:/Help/Concepts/Object objects] from these [wiki:/Help/Concepts/Object relations]. In this case, JOSM doesn't delete the [wiki:/Help/Concepts/Object objects] either, the operation is aborted. Click '''OK''' if you agree with removing the [wiki:/Help/Concepts/Object objects] from the displayed [wiki:/Help/Concepts/Object relations]. == See also == * [wiki:/Help/Concepts/Object Objects] * [wiki:/Help/EditToolbar Edit Toolbar] ---- Back to [wiki:/Help/Menu/Edit Menu Edit][[Br]] Back to [wiki:/Help Main Help]