Is there a way to clear a resource calendar?

1,052 views
Skip to first unread message

Dustin Hatcher

unread,
Jun 21, 2021, 7:47:09 PM6/21/21
to GAM for Google Workspace
Looking for a way to clear a resource calendar of events without notifying attendees. I looked through github.com/jay0lee/GAM/wiki/CalendarExamples but it looks like the wipe command is reserved for user calendars only. Also was thinking of a way to do a wildcard on gam calendar id:[id here] deleteevent query * but looks like query was removed as an operative from deleteevent (not that it would've worked anyways). 

So is there a way for us to clear the dozens of resource calendars we have that have gone unused for over a year? 

Ross Scroggs

unread,
Jun 21, 2021, 8:22:12 PM6/21/21
to google-ap...@googlegroups.com
Dustinn,

Try this out on one calendar.

gam calendar domain.com_123473...@resource.calendar.google.com  printevents > events.csv

gam csv events.csv gam calendar "~calendarId" deleteevent id "~id" sendnotifications false doit


Ross


On Mon, Jun 21, 2021 at 4:47 PM Dustin Hatcher <dustin....@gmail.com> wrote:
Looking for a way to clear a resource calendar of events without notifying attendees. I looked through github.com/jay0lee/GAM/wiki/CalendarExamples but it looks like the wipe command is reserved for user calendars only. Also was thinking of a way to do a wildcard on gam calendar id:[id here] deleteevent query * but looks like query was removed as an operative from deleteevent (not that it would've worked anyways). 

So is there a way for us to clear the dozens of resource calendars we have that have gone unused for over a year? 

--
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/9b7d6000-c9d0-427b-b296-b8b8aa68a758n%40googlegroups.com.


--

Dustin Hatcher

unread,
Jun 22, 2021, 12:10:47 PM6/22/21
to GAM for Google Workspace
Sweet! That worked perfect. Thank you Ross!!

Brian Oneill

unread,
Jul 8, 2021, 3:36:25 PM7/8/21
to GAM for Google Workspace
Hello,

Sorry to hijack this thread, but I am looking to do a similar thing. I created a test resource to wipe and that worked fine. 

Now I'm doing a test against live events by trying to remove a single instance of a recurring event before wiping everything, and I keep seeing that Google Calendar is booking an available room after the old one is removed. 

gam calendar bl...@resource.calendar.google.com deleteevent id string123 sendnotifications false doit 

Your room in CHI has become unavailable.

We booked an available, similar room for you.

Is there an option I'm missing? I tried support, but they just suggested deleting the resource or all events manually.

Thanks,

Brian O'Neill
Reply all
Reply to author
Forward
0 new messages