# ui.Panel.clear

<br />

Removes all widgets from the panel.

<br />

Returns this panel.

| Usage | Returns |
|---|---|
| `Panel.clear()` | ui.Panel |

| Argument | Type | Details |
|---|---|---|
| this: `ui.panel` | ui.Panel | The ui.Panel instance. |