_listDeletedThings

Lists the Things in this Space that pass the given filter, that have been deleted. -- Function
_listDeletedThings (filter, render) -> The same Type
filter (optional)
A QL expression returning YesOrNoType, to try on each deleted Thing
render (optional)
A QL expression saying what to return from each deleted Thing
Produces
A List of resulting values from the deleting Things
If no filter is given, all deleted Things will be returned.
The filter can be almost anything. For example, this returns all deleted Things that are children of My Model:
_listDeletedThings(filter = _model -> _is(My Model))
The render parameter will be applied to each deleted Thing, in the context of the history right before that Thing was deleted. You can return any sort of value here, both text and non-text. For example, this renders all of the instances of My Model, showing the name and OID of each with "Restore" button to undelete it:
_listDeletedThings(filter = _model -> _is(My Model), render=""[[Name]] ([[_oid]]) [[_QLButton(label = ""Restore"", noIcon = true, ql = _undeleteThing)]]"") -> _bulleted
If no render parameter is given, the OIDs of the deleted Things will be returned.