Sec.  21.  Exclusion  of  the  public.  –  The  judge  may,  motu  proprio, exclude  the  public  from  the  courtroom  if  the  evidence  to  be produced during the trial is offensive to decency or public morals. He may also, on motion of the accused, exclude the public from the trial except court personnel and the counsel of the parties.
 

WHEN CAN THE PUBLIC BE EXCLUDED FROM THE TRIAL?

1.    If  the  evidence  to  be  produced  during  the  trial  is  offensive  to decency or public morals
2.    On motion of the accused, exclude the public from the trial except court personnel and the counsel of the parties