# system.kanoa.item.deleteItemState(itemStateId, userId)

Delete an item state. If the item state has been used then the enabled property will be set to False

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

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

---
### Example
```python
itemStateId = 12
userId = 17
retVal, msg = system.kanoa.item.deleteItemState(itemStateId, userId)
```
