overkill

Is there a way to perform a task similar to OVERKILL command in Autocad, - to cleanup overlapping lines and useless polilyne points?