# system.kanoa.inventory.deleteInventoryTransaction(inventoryTransactionId, userId)

Deletes the inventory transaction identified by `inventoryTransactionId`. 
This is a hard delete of the transaction record; because inventory balances are typically derived from the sum of transactions, 
deleting a transaction will also change the computed on-hand balance for the affected part/inventory asset. 
Use with care on transactions tied to reference documents (POs, WOs).

---
### Parameters
**inventoryTransactionId** `Integer`: Id of inventory transaction 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
inventoryTransactionId = 5821
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deleteInventoryTransaction(inventoryTransactionId, userId)
print recordsModified, message
```
