See here for one possible implementation, which gets called in bootstrap.py as pollAndPruneOldData().done().
My use case: I'm using Sails as a client-side server, a la ungit or transmission-web. I want to store the computer process list in the ORM for a few minutes, then prune it so the process doesn't consume infinite memory.