Add method for deleting calendar event

This commit is contained in:
Adam Goldsmith 2022-04-02 19:02:02 -04:00
parent 50a2231174
commit f57f6e2402

View File

@ -79,3 +79,10 @@ class CalendarService:
else: else:
raise raise
def delete_event(self, calendar_id: str, id: str):
event_id = self.encode_event_id(id)
try:
self.service.events().delete(calendar_id, event_id)
except HttpError as error:
print("Got error when deleting event: ", error)