Google Calendar event ID

1,328 views
Skip to first unread message

Angel Quinones

unread,
Nov 15, 2022, 2:06:18 PM11/15/22
to GAM for Google Workspace
Hello Everyone,

Trying to delete a calendar event from a terminated employee that keeps popping up on users calendars. Can anyone help out with this?

Maj Marshall Giguere

unread,
Nov 15, 2022, 5:21:09 PM11/15/22
to google-ap...@googlegroups.com
Angel

For detailed information look here:
https://github.com/taers232c/GAMADV-XTD3/wiki/Calendars-Events
gam calendar <CalendarEntity> delete events [<EventEntity>] [doit] [<EventNotificationAttribute>]
gam calendar <CalendarEntity> purge events [<EventEntity>] [doit] [<EventNotificationAttribute>]

If <EventEntity> is not specified, all events in <CalendarEntity> are selected. This is not typically used.

No events are deleted unless you specify the doit option; omit doit to verify that you properly selected the events to delete.


Here's a synopsis. You will need to know the calendar ID and event ID.  There may be a problem if the user has been deleted or suspended, but I'm not sure.
If the old user hasn't yet been purged you should be able to find the calendar ID

> gam user us...@mydomain.com print calendars

This will get you a list of all the users calendars once you have that you can use

> gam calendar <calendar ID> show events

You'll have to look through the events to find the "Event" ID of interest, then you can use the delete/purge event command.  Alternately if you want to get rid of all the events from the users calendar you can just delete all the event

For a user's primary calendar:

gam calendar <CalendarEntity> wipe events

For non-primary calendars:

gam calendar <CalendarEntity> delete events [doit] [<EventNotificationAttribute>]

No events are deleted unless you specify the doit option; omit doit to verify that you properly selected the events to delete.


Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.



On Tue, Nov 15, 2022 at 12:06 PM 'Angel Quinones' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:
Hello Everyone,

Trying to delete a calendar event from a terminated employee that keeps popping up on users calendars. Can anyone help out with this?

This message (and any associated files) may contain confidential and/or privileged information from Digital Remedy. If you are not the intended recipient or authorized to receive this for the intended recipient, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by sending a reply e-mail and delete this message. Thank you for your cooperation.

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/1726e317-3235-4d50-a70c-fb39bd6f6489n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages