What are these purple segments that shows in edit mode , and how to remove them from viewport?
Ah, those are the mesh normals which show the direction the face is pointing. You can turn them off in the overlays popover under Normals:
Thanks!