Here is the full Oxford Dictionary definition if we wish to delve into the different meanings:
[WITH OBJECT]
1Rid (someone) of an unwanted feeling, memory, or condition:Bob had helped purge Martha of theterrible guilt that had haunted her
1.1Free someone from (an unwanted feeling, memory, etc.):his hatred was purged
1.2Remove (a group of people consideredundesirable) from an organization or place in an abrupt or violent way:he purged all but 26 of the central committee members
1.3Remove a group of undesirable people from (an organization or place) in anabrupt or violent way:an opportunity to purge the party of unsatisfactory members
1.4Law Atone for or wipe out (contempt ofcourt):he has a right to apply to the court to purge his contempt
2Physically remove (something) completely:a substance designed to purge impurities from the body
2.1[NO OBJECT] Evacuate one’s bowels, especially as a result of taking a laxative:sufferers eat normally in summer but overeat and purge during winter; (as noun purging) occasional bingesare followed by self-induced purging or vomiting