# system.kanoa.inventory.deletePartInventoryPolicy(partInventoryPolicyId, userId)

Deletes the part inventory policy identified by `partInventoryPolicyId`. 
Use this to remove reorder/stocking rules for a part at a location that is no longer stocked or has been superseded by a new policy. 
The id of the user performing the deletion is required for auditing.

---
### Parameters
**partInventoryPolicyId** `Integer`: Id of part inventory policy 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
partInventoryPolicyId = 733
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, message = system.kanoa.inventory.deletePartInventoryPolicy(partInventoryPolicyId, userId)
print recordsModified, message
```
