# ui.Panel.remove

<br />

Removes the given widget from the panel, if it exists.

<br />

Returns whether the widget was successfully removed.

| Usage | Returns |
|---|---|
| `Panel.remove(widget)` | Boolean |

| Argument | Type | Details |
|---|---|---|
| this: `ui.panel` | ui.Panel | The ui.Panel instance. |
| `widget` | ui.Widget | The widget to remove. |