All functions take the four selectors as their parameters. They can be used with the workflow, history and icmapi workers.
countRecords
Returns a count of records matching the specified selectors.
purgeRecords
Deletes all records matching the supplied selectors. Returns a count of those purged.
queryRecords
Returns a count and information about records that match the selectors.