# system.kanoa.asset.deleteStateCategory(stateCategoryId, userId)

Deletes the stateCategory. SQL will prevent deletion of this stateCategory if it has been used

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

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

---
### Example
```python
retVal, msg = system.kanoa.asset.deleteStateCategory(123, 5)
```
