I'm trying to clear all the events of a google calendar using the calendar ID.

<https://developers.google.com/resources/api-libraries/documentation/calendar/v3/python/latest/calendar_v3.calendars.html#clear>

Attempting it, gives a "400 Bad Request" response from either Python or a simple curl call using the Google API Explorer:

```
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Value"
   }
  ],
  "code": 400,
  "message": "Invalid Value"
 }
}

```

From either the API explorer or the python API I'm providing only the calendar ID of the corresponding (non-primary) calendar I want to delete.

In Python:

```
service.calendars().clear(calendarId=<calid-found-in-calendarList().list()>).execute()

```

Which returns:

```
<HttpError 400 when requesting https://www.googleapis.com/calendar/v3/calendars/<calendar-id>4%40group.calendar.google.com/clear? returned "Invalid Value". Details: "[{'domain': 'global', 'reason': 'invalid', 'message': 'Invalid Value'}]">

```

Any idea what I'm doing wrong?