# system.kanoa.cmms.deleteWorkOrderSchedule(workOrderId, userId)

Deletes the recurring schedule attached to a work order, identified by `workOrderId`. 
Once deleted, the work order will no longer automatically generate future schedule events (see `getWorkOrderSchedule` / `addWorkOrderScheduleEvent`). 
This does not delete the work order itself, only its schedule definition.

---
### Parameters
**workOrderId** `Integer`: Id of work order 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
workOrderId = 4821
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
recordsModified, msg = system.kanoa.cmms.deleteWorkOrderSchedule(workOrderId, userId)
print recordsModified, msg
```
