Remove Widget from Dashboard
evaluation_dashboards.widgets.remove(strwidget_id, WidgetRemoveParams**kwargs)
DELETE/v5/evaluation-dashboards/{dashboard_id}/widgets/{widget_id}
Detach a widget from this dashboard without deleting the widget itself.
This removes the widget’s ID from the dashboard’s widget_order only; the
underlying widget entity and any computed widget results are left intact, so a widget
shared with other dashboards continues to work there. The widget must currently be in
this dashboard’s widget_order, otherwise a not-found error is returned. Responds
with 204 No Content on success.
Remove Widget from Dashboard
import os
from scale_gp_beta import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
client.evaluation_dashboards.widgets.remove(
widget_id="widget_id",
dashboard_id="dashboard_id",
)