The function of the spleen is to act as a filter, cleansing the blood of older or damaged red and white blood cells along with platelets.
The main function of the spleen is to filter the blood and remove unwanted red blood cells.