clean the old data after the retention has expired