Use retention period of trendstore for cleaning up old data.