You must mean a degradation ceremony. Degradation ceremony are also known as "cashiering". Broadly speaking it is a public rejection of a person.
The term "degradation ceremony" was coined by sociologist Harold Garfinkel to refer to societal acts that are supposed to communicate scorn public scorning to a person. A degradation ceremony are often a formalized ceremony.