# system.kanoa.lot.deleteLotState(lotStateId, userId)

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

---
### Parameters
**lotStateId** `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
>lotStateId = 1
>userId = 5
>retVal, msg = system.kanoa.lot.deleteLotState(lotStateId, userId)
>print(retVal)  # Print the number of records modified
>print(msg)  # Print the message indicating whether the reason was deleted or disabled
```
