1. Create an SQL script that deletes the records older than 4 days. Something like:
DELETE FROM table_name WHERE date_column < DateAdd(day, -4, GetDate())
2.
Create an SQL job[
^] which run this script at a scheduled time everyday.
Also you might want to
ARCHIVE
the data instead of deleting it unless it is absolutely useless.