Remove a widget
wp_delete_widgetRemove a widget instance from its sidebar and delete its settings. The widget option is rewritten directly, without the widget's own cleanup routines. Returns deleted and id; an id found neither in a sidebar nor in the stored settings is reported as not found. Permanent: no undo point is recorded. The settings of an existing widget change with wp_update_widget. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Widget id "<id_base>-<number>" as wp_get_widgets lists it, e.g. "text-2". |