-
-
Save purintai/c9a05eb7663e8f703ed61f4f2ec37fff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myFunction() { | |
var cals = CalendarApp.getAllCalendars(); | |
for(var i=0; i<cals.length; i++){ | |
Logger.log(cals[i].getName()) | |
var events = cals[i].getEvents(new Date(2016, 1 ,1), new Date(2016, 12, 31)) | |
for(var n=0; n<events.length; n++){ | |
Logger.log(events[n].getTitle()) | |
if (events[n].getLocation() == "東京都港区高輪") { | |
events[n].deleteEvent() | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment