Racists who used the power of their government positions to impose their evil upon a country were lynched at Nuremburg.
Men like Karl Dönitz were just sent to prison.
They weren't lynched. They had a fair and public trial, and then a legal and just sentence was carried out.