While it would certainly be a bad idea to add a cron job for every row of your database, I don't see a problem of running a cron job running (e.g.) every hour (or every 30mins, or once a day), which deletes every entry older than 24 hours.
You can furthermore make sure that no entries older than 24 hours are ever returned when querying them.