Criminal Procedure Act 2011, s 197
The court has the power to make an order to clear the court (where everyone but the parties leave the court) and forbid any reporting of proceedings (in newspapers or other media). This only happens in certain limited circumstances when it is necessary and when a suppression order would not be enough. To avoid any of the following:
undue disruption of the proceedings – for example, the court case could be disrupted because of the high profile of the defendant
risking the security or defence of New Zealand
a real risk of making the trial unfair (prejudice)
putting any person in danger
interfering with the operation of the law.