# DiscardPanel

int DiscardPanel (int panelHandle);

## Purpose

Removes a panel and any of its child panels from memory and clears them from the screen if visible.

You must call DiscardPanel from the thread in which you create the panel.

## Parameters

Input
Name | Type | Description
panelHandle | integer | Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel.

## Return Value

Name | Type | Description
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
Code | Error Message String
xx | Success