To "excommunicate" is to...
A send away into a foreign land without the hope of ever returning,
B ban from the church and its sacraments.
remove from power, as a king from his throne.
D be found guilty in a court of law and to be put to death.
The Official definition is to "officially exclude (someone) from participation in the sacraments and services of the Christian Church." So it would be option B