Garry's Mod Wiki

Panel:Remove

  Panel:Remove()

Description

Marks a panel for deletion so it will be deleted on the next frame.

This will not mark child panels for deletion this frame, but they will be marked and deleted in the next frame.

See also Panel:IsMarkedForDeletion

Will automatically call Panel:InvalidateParent.