removePanel

fun removePanel(panel: AnyPanel): Boolean

Removes a panel from the Frontend.

This transitions panel's lifecycle to Lifecycle.State.DESTROYED, if not already destroyed. The panel may not be added to a frontend again.

Return

true if the panel was removed from the Frontend, false otherwise.