[[TranslatedPages]] '''Allows the user to delete nodes and other [Concepts/Object objects].''' [[TOC(inline)]] == Deleting objects == This item can be found in [wiki:/Help/Menu/Edit Edit menu] [[Image(source:trunk/images/dialogs/delete.png)]] ''Keyboard shortcut:'' '''{{{Delete}}}''' The user can click on an [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. == Delete mode == [[Image(source:trunk/images/mapmode/delete.png)]] ''Keyboard shortcut:'' '''{{{Ctrl}}} + {{{Delete}}}''' === Alt modifier === {{{Ctrl}}} + {{{Delete}}}, when '''{{{Alt}}}''' is held when using this tool the way and its' associated unused nodes are deleted. === Shift modifier === {{{Ctrl}}} + {{{Delete}}}, when '''{{{Shift}}}''' is held when using this tool, the segment you clicked is removed from the way, and the way split into two. === Ctrl modifier === {{{Ctrl}}} + {{{Delete}}}, when '''{{{Ctrl}}}''' is pressed when releasing the button, the [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 [Concepts/Object object] which is part of a [Concepts/Object#Relations relation] the [Concepts/Object object] has to be removed from the [Concepts/Object#Relations 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 [Concepts/Object#Relations relations] (second column in the table) the [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 [Concepts/Object objects] from these [Concepts/Object#Relations relations]. In this case, JOSM doesn't delete the [Concepts/Object objects] either, the operation is aborted. Click '''OK''' if you agree with removing the [Concepts/Object objects] from the displayed [Concepts/Object#Relations relations]. == See also == * [Concepts/Object Objects] * [EditToolbar Edit Toolbar] ---- Back to [wiki:/Help Main Help]