# system.kanoa.quality.config.deleteAlertGroup(alertGroupId, userId)

Deletes an new alert group. FK constraints will prevent us from deleting a check item group that is being used by a check item

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

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

---
### Example
```python
alertGroupId=1
userId=5
retVal, msg = system.kanoa.quality.config.deleteAlertGroup(alertGroupId, userId)
if msg or retVal == 0: system.perspective.sendMessage('showWarningToast', {'message': 'Could not delete this alert group. %s'%msg})
else: system.perspective.sendMessage('showSuccessfulToast', {'message': 'Alert Group has been deleted'})

```
