wiki:Help/Action/Delete

Version 15 (modified by skyper, 15 years ago) ( diff )

--

Delete

source:/trunk/images/dialogs/delete.png Keyboard shortcut: D

Allows the user to delete nodes and other objects.

TOC(inline)

Deleting objects

The user can click on an object, which get 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. Then if the node was at the end of a way the way gets shortened. If the node was in the middle of the way then the way is changed so it runs between the existing points.
  • if you click a way then the way, and any associated nodes not used by anything else, gets 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 in two.
When Ctrl is pressed when releasing the button, the 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

If you delete an object which is part of a relation the object has to be removed from the relation. JOSM doesn't silently do so. Rather, the following confirmation dialog is displayed:

The entries in the displayed list indicate from which relations (second column in the table) the 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 objects from these relations. In this case, JOSM doesn't delete the objects either, the operation is aborted. Click OK if you agree with removing the objects from the displayed relations.

See also ==


Back to Main Help

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.