title: Deleting reminders from calendar in Swift
body: <p>I use the following function to retrieve my calendar:</p>
  
  <pre><code>func retrieveCalendar() -&gt; EKCalendar? {
  
      appDelegate = UIApplication.sharedApplication().delegate
          as? AppDelegate
  
      var myCalendar:  EKCalendar?
      let calendars = appDelegate!.eventStore!.calendarsForEntityType(EKEntityTypeReminder) as! [EKCalendar]
      let filteredCalendars = calendars.filter {$0.title == "MedicalCalendar"}
      if filteredCalendars.isEmpty {
          println("could not find reminder calendar 'MedicalCalendar'")
          return nil
      } else {
          myCalendar = filteredCalendars[0]
          return myCalendar!
      }
  
  }
  </code></pre>
  
  <p>However, anytime I add new events to the calendar I'd like to check if they already exist there. I figured out that the easiest approach would be to delete all reminders and load new ones again. I tried:</p>
  
  <pre><code>self.retrieveCalendar()?.reset()
  </code></pre>
  
  <p>But it does not work. How can I remove reminders from calendar?(either one at a time or all of them at once)</p>