# system.kanoa.dashboard.deleteWidget(widgetId, userId)

Deletes a widget

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

---
### Returns
**# of records modified** `Integer`<br />
**message** `String` None if success<br />

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