How to clear vertices on the same edge

Hi, I’ve created an object with some weird workflow and then i found myself with a completely nonsensical mesh so I used clean up->limited dissolve and it moved all the vertices along the edges while retaining the main shape. How can I dissolve those vertices? (if I remember correctly)

If I select all the vertices on an edge and do dissolve vertices this is what happens

Cheers guys

There might not be only several vertices on top of each other but also several edges. You can check this by selecting a single one and moving it somewhere else.

Thanks, you are right, I pulled a bunch of edges around and there are multiple.

Is there a way to sort this out or is the only way to retopologize it from scratch?