Deleting redundant points

Is there a way of deleting all redundant points (on a straight line that is either horizontal or vertical) with a single command?

Maybe remove overlap helps?

Cmd + alt + Shift +T (Tidy Up Paths) ?