# system.kanoa.lot.deleteLotStateReason(lotStateReasonId, userId)

Delete a lot state reason. If the state has been used then it is set to disabled

---
### Parameters
**lotStateReasonId** `Integer`<br />
**userId** `Integer`: Id of user executing the function<br />

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

---
### Example
```python
lotStateReasonId = 1
userId = 5
retVal, msg = system.kanoa.lot.deleteLotStateReason(lotStateReasonId, userId)
```
