How To Delete a Dead Google Calendar Event Using GAM
Purging unwanted calendar items by leveraging the invite.ics file info and the GAM utility.
If you’re a sysadmin / IT professional, and you’ve been asked to delete a stale/dead/inaccessible Google Calendar event, this is a process by which you can get that event deleted. These instructions assume you are using a Windows workstation, and are in a Google Workspace environment.
- Download and install the GAM utility. This requires use of setting up a Google Cloud account, and designating a project that authorizes its use.
- Make sure you have an email client such as eM Client or Thunderbird; any client that lets you download ICS attachments from calendar invite emails.
- Set up your email client to access your company Google account.
- Have a coworker still on the unwanted calendar event send you a copy of the invite for it. You should receive an ICS file with the invite.
- Open up the ICS file using Notepad or some other text editor. Under
ORGANIZER, there will be amailto:address; you’ll need the email address that ends ingroup.calendar.google.com. You will also need theUID, excluding the@google.comidentifier. - Open up the folder where you installed GAM, and right-click and use Terminal to bring up a command-line prompt.
- Verify that it is successful in locating the event:
.\gam.exe calendar (ORGANIZER email address) delete event (UID) - The event should delete:
.\gam.exe calendar (ORGANIZER email address) delete event (UID) doit
If you’re unable to follow steps 4 & 5, you can skip ahead to step 6, and then run:
.\gam.exe calendar (ORGANIZER email address) show events > events.txt
That will produce an events.txt file you can open and review. Locate the desired event, and follow steps 7 & 8.
Read other posts