I created an event using some test data in Google Calendar’s node API while trying to test out a program I’m building. Now I’m ready to move to the next stage but can’t because when trying to create a new event it says it already exists. When I call get
on the eventId it returns an event with the following info
{
"kind": "calendar#event",
"transparency": "transparent",
"iCalUID": "[email protected]"
"id": "495663",
"status": "cancelled",
"start": {
"dateTime": "2000-01-01T00:00:00Z",
"timeZone": "UTC"
},
"end": {
"dateTime": "2000-01-02T00:00:00Z",
"timeZone": "UTC"
},
}
However when I try to call delete
on that event it gives an error that the event doesn’t exist. When going to Google Calendar in the browser I don’t see the event anywhere, not even in the deleted events section.
I read somewhere that I can always update the event status to confirmed
for it to be visible, but my question is more how can I delete the event properly, permanently and avoid this situation happening again.