Hi b-jazz,
instead of cleaning up the mess it might more efficient to ask the user to stop the broken import and to come up with a proper workflow. See https://openstreetmap.org/changeset/134232663 and https://community.openstreetmap.org/t/tagless-points-and-lines-in-greenbelt-md/97992.
All the best,
skyper