# system.kanoa.cmms.deleteProcedureCategory(procedureCategoryId, userId)

Deletes a procedure category by id. Use this to remove a category used to organize and classify procedures once it is no longer needed. The underlying SQL will prevent deletion if the category is still in use � for example, 
if one or more procedures are currently assigned to it � so the call fails safely rather than orphaning existing procedures.

---
### Parameters
**procedureCategoryId** `Integer`: Id of the procedure category to delete<br />
**userId** `Integer`:Id of the user executing the function<br />

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

---
### Example
```python
procedureCategoryId = 19
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})

result, message = system.kanoa.cmms.deleteProcedureCategory(procedureCategoryId, userId)
print result, message
```
