A party or other celebration held in honour of someone leaving their job. i.e, are you going to Josh's leaving do?
A party for a person (i.e. a fellow employee) who is leaving; a farewell party.
A party to recognize the passing (death) of a friend and allow survivors to reminisce about the person's life.