Personal Web Real Estate of Mike Cotton

Primary Navigation

Social Navigation

Deleting Event When Re-Importing

General

The Events Aggregator by Modern Tribe has limitations. One of them is that it will not detect when an event is deleted from an external calendar. The result is that you have to go in and delete them yourself, if you know about them.

This code snippet is one way to solve it, but it also has it’s limitations. Basically, you will set it up for one calendar to be imported into it’s own Event Category. This snippet will basically delete all the events within the category and create new events based on the events that were imported.

To protect an event from being deleted, all you need to do is remove the event from the category.

Here’s the code:


Mike

Owner of Cotton Web Services and this particular blog. Also one of team members at Holy Fire Games and Modern Tribe. @codingmusician on Twitter