Skip to content

Instantly share code, notes, and snippets.


Илья Pupko ILAsoft

View GitHub Profile
ILAsoft /
Created Apr 20, 2019
Iterates through all Google Calendar events for the main calendar and deletes them (moves to trash)
function doGet() { /* Get your default calendar */
var cal = CalendarApp.getDefaultCalendar();
var yest = new Date().getTime() - 604800000; //milliseconds in a day -- go back one week
var start = new Date(0);
var end = new Date(yest);
/* Get all events from start date upto time */
var events = cal.getEvents(start, end);

Keybase proof

I hereby claim:

  • I am ilasoft on github.
  • I am ilasoft ( on keybase.
  • I have a public key ASAD-TXSQuVqGxbsgzWScSoBWbZsr0zMNbZdhyJgNlYw6wo

To claim this, I am signing this object:

You can’t perform that action at this time.