add:         if (calendar instanceof Components.interfaces.calICalendarProvider (calendar.type == "storage" || cal.type == "memory")) { try { calendar.deleteCalendar(calendar, null); } catch(ex) { dump("error purging calendar:"+ex+'\n'); } } 
context:     deleteCalendar: function(calendar) {        /* check to see if calendar is unregistered first... */        /* delete the calendar for good */                this.notifyObservers("onCalendarDeleting", [calendar]);    },
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/501cbd1b9c8481004847ae524a5940a959bf3b34/calCalendarManager.js/clean/calendar/base/src/calCalendarManager.js