# system.kanoa.inventory.deleteUnitOfMeasure(uomId, userId)

Deletes the unit of measure record identified by `uomId` from the Kanoa MES inventory module. 
`userId` records who performed the deletion for audit purposes. Callers should confirm the unit of measure is not still referenced 
by active parts or transactions before deleting, since removing a unit of measure that is in use may cause referential integrity issues.

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

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

---
### Example
```python
uomId = 8
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deleteUnitOfMeasure(uomId, userId)
print recordsModified, message
```
