Use cases → Scheduling
Automate recurring cleanup of shared Workspace calendars
Use delegated access to remove old or orphaned events and calendars, keeping shared calendars manageable and accurate.
| Who it is for | IT admins responsible for shared calendar hygiene in large organisations. |
|---|---|
| APIs | Calendar API |
| Typical scopes | calendar |
The problem
Shared calendars collect abandoned events, duplicated entries, and unused calendars over time. Manual cleanup is slow and inconsistent, and clutter can cause missed appointments and confusion over resource bookings.
How it works
- Impersonate a durable admin or calendar owner account using domain-wide delegation.
- Enumerate all shared calendars, filtering by naming convention or owner.
- For each calendar, search for events older than a set threshold or matching orphan patterns.
- Batch-delete outdated events and deprovision unused calendars.
- Log actions and optionally notify calendar owners of major changes.
What changes
Shared calendars remain accurate and uncluttered, making it easier for users to find and trust bookings and availability.
Questions people ask
Can I delete calendars outright via API?
You can only delete calendars you own or have 'owner' access to. For resource calendars, removal requires specific admin privileges.
Will users be notified when events are deleted?
Not by default; you must send notifications separately if users need to be informed.
Want this built?
This is a pattern we run in production. We will set up the delegation and build this on top of it — $500 per hour, most of it working the same day.
Talk to us Or read the setup guideRelated use cases
Build a real picture of team availability
Read calendars across the domain to answer who is free, who is overloaded and where the week actually went.
Turn a finished meeting into follow-up automatically
Detect that a meeting happened, pull the notes, and draft the follow-up before anyone opens their laptop.
Turn a booking into a record everywhere it matters
When a meeting is booked, create the record, the folder and the confirmation in one pass.