Skip to content

Instantly share code, notes, and snippets.

View ILAsoft's full-sized avatar
🎯
Focusing

iLya Pupko ILAsoft

🎯
Focusing
View GitHub Profile
@ILAsoft
ILAsoft / CalendarCleanup.gs
Created April 20, 2019 02:56
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 (https://keybase.io/ilasoft) on keybase.
  • I have a public key ASAD-TXSQuVqGxbsgzWScSoBWbZsr0zMNbZdhyJgNlYw6wo

To claim this, I am signing this object: