This is known as genocide. Some examples of genocide are the systematic killing of the Jews in Nazi Germany and the extermination of the Armenian Population in Turkey.
Euthanasia is a voluntary death that is sometimes chosen by people who are gravely ill.