title: How to delete all events from Google calendar from specified date?
body: <p>I'm using <a href="https://github.com/francisoud/googlecalendar" rel="nofollow">googlecalendar plugin</a> for working with Google Calendar with ruby.</p>
  
  <p>The only problem I'm facing is with deleting an event from google calendar.</p>
  
  <p>I found an example to delete event in above mentioned github. But we need to pass event id. How can I use the below code to delete all events from google calendar from specified date?</p>
  
  <p><strong>CODE:</strong></p>
  
  <pre><code>require File.dirname(__FILE__) + '/../shared.rb'
  
  g = GData.new
  puts 'login'
  token = g.login('REPLACE_WITH_YOUR_MAIL@gmail.com', 'REPLACE_WITH_YOUR_PASSWORD')
  puts "token: #{token}"
  
  event = {:title=&gt;'title',
            :content=&gt;'content',
            :author=&gt;'pub.cog',
            :email=&gt;'pub.cog@gmail.com',
            :where=&gt;'Toulouse,France',
            :startTime=&gt;'2009-06-20T15:00:00.000Z',
            :endTime=&gt;'2009-06-20T17:00:00.000Z'}
  
  create_response = g.new_event(event)
  puts create_response.body
  
  
  puts 'delete_event'
  # TODO GET id from new_event response
  id='http://www.google.com/calendar/feeds/default/private/full/pgvgjdnh43g3bo0emnpfg0gnr4'
  response = g.delete_event(id)
  puts 'done'
  </code></pre>
  
  <p><strong>URL:</strong></p>
  
  <p><a href="https://github.com/francisoud/googlecalendar/blob/master/googlecalendar/examples/ruby_standalone/gdata_delete_event.rb" rel="nofollow">https://github.com/francisoud/googlecalendar/blob/master/googlecalendar/examples/ruby_standalone/gdata_delete_event.rb</a></p>
  
  <p>Please share your thoughts if we can do this with other plugins.</p>
  
  <p>Thanks in Advance :)</p>