Mass Calendar Event Removal
Mass Calendar Event Removal
This Google Apps Script is designed to efficiently clear all events from a specified Google Calendar. It targets a calendar by name and removes all events within a defined timeframe, effectively wiping the calendar clean. The script begins by checking if the calendar exists and creates it if not. It then retrieves all events from the start of the epoch (1970) to the distant future, logs the number of events found, and proceeds to delete each one. Throughout the process, detailed logs are generated to track the script's progress, ensuring that the deletion is properly documented. This script is useful for anyone who needs to reset or maintain a Google Calendar by removing all existing events in one go.