Detention meaning

the action of custody someone or the state of being detained in official custody.

the punishment of being kept in school after hours

the act or condition of being officially forced to stay in a place in custody 

arrest or imprisonment of someone