Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How to delete all events on many dates all at once but not the whole Calendar in Google Calendar? I tried to click on a date that got an event to delete and dragged my mouse to 2 days after that date, but then I always see "create an Event". I thought I could press backspace or delete to delete all those events.

What I did so far = deleting event one by one :(

share|improve this question
    
There's nothing built-in that would let you do this. If there's an API for the calendar, it might be possible for someone to create an app to do this, but I don't know of any. –  Al E. Jan 18 '12 at 14:35

4 Answers 4

I've been able to do this with a Google Script like this. You can alter this to pinpoint the days you want to delete, etc.

var fromDate = new Date(2013,0,1,0,0,0);
var toDate = new Date(2013,0,4,0,0,0);
var calendarName = 'My Calendar';

// delete from Jan 1 to end of Jan 4, 2013

var calendar = CalendarApp.getCalendarsByName(calendarName)[0];
var events = calendar.getEvents(fromDate, toDate);
for(var i=0; i<events.length;i++){
  var ev = events[i];
  Logger.log(ev.getTitle()); // show event name in log
  ev.deleteEvent();
}
share|improve this answer
    
Where do you enter this? –  justintime Apr 10 at 22:00
    
Create a new script at Google Scripts and paste this in. Change the calendarName to the e-mail (GMail) address associated with the calendar. –  Emaad Ahmed Manzoor Jun 15 at 3:32

Best thing I have found is using the mass delete function from the mobile app, Business Calendar Pro by Appgenixsoftware.

share|improve this answer

After migrating from a previous calendar system to Google Apps, all recurring events were imported individually. I created a new Google Script at https://script.google.com and modified it to remove only some of the events (a new recurring event was already made with another name).

function delete_events()
{
  //take care: Date function starts at 0 for the month (January=0)
  var fromDate = new Date(2014,7,1,0,0,0); //This is August 1, 2014
  var toDate = new Date(2016,2,1,0,0,0);   //This is March 1, 2016 at 00h00'00"
  var calendarName = 'your_calendar_name';
  var toRemove = 'title_of_the_events';

  var calendar = CalendarApp.getCalendarsByName(calendarName)[0];
  var events = calendar.getEvents(fromDate, toDate,{search: toRemove});
  for(var i=0; i<events.length;i++)
  {
    var ev = events[i];
    if(ev.getTitle()==toRemove) //check if the title matches
    {
      Logger.log('Item '+ev.getTitle()+' found on '+ev.getStartTime()); // show event name and date in log
      //ev.deleteEvent(); //uncomment this line to actually do the delete !
    }
  }
}
share|improve this answer

If you want to delete all the events in a calendar you can go to the calendar settings and delete the whole calendar.

If it's your main calendar it will delete all of its entries, and if it's another calendar it will delete the whole calendar therefore you will have to create a new one.

share|improve this answer
    
not the whole calendar. just 3 dates. –  Arie Oct 3 '11 at 23:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.