Added functionality to delete events before syncing to make sure cancelled events do not remain in the database.