Deleting ways

How do I get rid of ways IÂ’ve put in by mistake?

Depends on the editor you use:
JOSM: Highlight the way and press “Del”
Potlatch: Highlight the way and press Shift+Del