# system.kanoa.dashboard.deleteDashboardWidget(dashboardWidgetId, userId)

Deletes a dashboards widget

---
### Parameters
**dashboardWidgetId** `Integer`: Id of the dashboard widget to delete<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**# of records modified** `Integer`<br />

---
### Example
```python
userId = 123
dashboardWidgetId = 4
retVal, msg = system.kanoa.dashboard.deleteDashboardWidget(dashboardWidgetId, userId)
if msg:	system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Dashboard widget has been deleted')
```
