Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remove old events from Calendar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove old events from Calendar
Authored by: Supp0rtLinux on Sep 23, '13 01:13:53PM

With some extra shelling scripting to use the 'date +%' options to determine the current day, you could have this setup to always remove everything but the last x number of days. So… you could use 'date +%' and then set it to remove everything 60 or 90 or 180 days older and only keep the last 2 months, 3 months, or 6 months of events. You could then also have it run in launchd or cron or a tool like Do Something When to run once a day and never touch it again...



[ Reply to This | # ]
Remove old events from Calendar
Authored by: chrischram on Sep 25, '13 11:30:08AM

I've been using the Automator approach for awhile now. It works well, and of course is less prone to potentially data-killing coding errors.



[ Reply to This | # ]