| 1 | [[TranslatedPages]] |
| 2 | |
| 3 | = Edit > Purge... = |
| 4 | |
| 5 | [[JOSMImage(purge,48,link=,middle,margin-right=20)]] ''Keyboard shortcut'': **`Ctrl+Shift+P` ([wikitr:/Help/ExpertMode expert mode] only)** |
| 6 | |
| 7 | The purge action cleans up your data layer by removing the selected [wikitr:/Help/Concepts/Object objects] from the layer. However, in contrast to the [[JOSMImage(dialogs/delete,24,link=,middle)]] [wikitr:/Help/Action/EditDelete delete action], they **will not be deleted in OSM database** on the server when you upload your changes. |
| 8 | |
| 9 | It is, as if JOSM completely forgets about these objects and they never had been downloaded. |
| 10 | |
| 11 | |
| 12 | == Warnings == |
| 13 | === Dependent objects === |
| 14 | When you purge a node of a way, that way cannot exist without its nodes, so it has to be purged as well. JOSM will give a warning in this case and lets you inspect the objects that need to be purged in addition to the original selection. |
| 15 | |
| 16 | The same holds, if you like to purge a new object (`id:0`) that is member of a relation. Members with a positive id can be purged without affecting the relation. Their status will be ''**incomplete**'' after purging. |
| 17 | |
| 18 | If you get this warning, you can safely proceed, but be aware that more objects are purged, than originally selected. |
| 19 | |
| 20 | === Modified objects === |
| 21 | If you purge modified objects, these edits are lost. This can be intended, but you will get a warning in this case. |
| 22 | |
| 23 | |
| 24 | == Clear Undo/Redo buffer == |
| 25 | This option is supposed to free resources (memory). But don't rely on it (yet). If you are short of memory, it is still the best option to [[JOSMImage(save)]] [wikitr:/Help/Action/Save save] the (partially purged) layer and reopen it in another instance of JOSM. |
| 26 | |
| 27 | |
| 28 | == See also == |
| 29 | |
| 30 | * [[JOSMImage(dialogs/delete,24,link=,middle)]] [wikitr:/Help/Action/Delete Delete] |
| 31 | * [wikitr:/Help/Concepts/Object Objects] |
| 32 | |
| 33 | ---- |
| 34 | Back to [wikitr:/Help/Menu/Edit Menu Edit] \\ |
| 35 | Back to [wikitr:/Help/Menu Main Menu] \\ |
| 36 | Back to [wikitr:/Help Main Help] |