Delete master data record
rillsoft_resource_pool_resource_deleteDeletes one resource-pool element by ID or code inside an open unit of work; removes emptied groups and refuses deletion if roles, teams, or machine kinds still refer to it.
Instructions
Deletes a single element of the resource pool. Where that leaves its group empty, the group goes with it. Inside an open unit of work only. Where something inside the pool still points at the element - a person on the role or team, a machine on the machine kind - the call is refused and names what refers to it, just as rillsoft_calendar_delete does. Assignments inside open projects are not checked: a project carries its own copy of the resource data, so deleting here does not reach into it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | internal id of the element; give exactly one of 'id' and 'code' | |
| code | No | code of the element; an ambiguous code makes the call fail | |
| type | Yes | catalog the object comes from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | internal id of the element | |
| code | No | code of the element; missing when none is set | |
| name | No | name of the element | |
| type | Yes | catalog of the element | |
| group | No | name of the group; missing for people and without a group name | |
| outcome | Yes | what the call did |