objectsToBeDeleted
Type: ObjectArray
The objectsToBeDeleted property of the JadeRestService class is an array for non‑shared transient objects used in a REST method. After the method returns, the array is purged. You should add transient objects to this array in your logic.
Anything added to the objectsToBeDeleted collection is expected to be non‑shared transients, and any other object lifetime will cause the logic to fail because the logic is not in transient state.
If the object returned by the called REST method is a non-shared transient, it is automatically deleted even if it is not included in this array.
A returned shared transient object is not deleted on completion of the REST Services processing. It would be unsafe to do so, because JADE cannot be certain of whether that is the intention and JADE would have to go into transaction state to do so.