Remove Spikes of a Mesh

Hi everyone,
I am looking for a way to remove spikes of a mesh which do not fit in at all to the total mesh geometry. I created an example here:SphereSpike.3dm (968.6 KB)

Is there any possibility in Grasshopper/Pythonscripting to remove such a spike?
Thanks a lot!

I’m not too familiar with mesh operations, but this script essentially culls vertices that have a certain deviation. It’s very specific to your example, measuring the distance from the center of the sphere to each vertex. Could easily be adapted to i.e. Z values. (387.6 KB)