excommunication: the act of banishing a member of a church from the communion of believers and the privileges of the church; cutting a person off from a religious society
code of conduct: a set of conventional principles and expectations that are considered binding on any person who is a member of a particular group