A splenectomy can be performed either through open surgery or laparoscopically. In an open splenectomy, a large incision is made in the abdomen to remove the spleen. In a laparoscopic splenectomy, several small incisions are made, and the spleen is removed using a camera and specialized instruments. The choice of technique depends on the patient's condition and the surgeon's expertise.