public function clearCalendar($calendarID)
	{
		if ($this->isAuthenticated())
		{
			$data = $this->query('https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode($calendarID) . '/clear', null, null, 'post');

			if ($data->body != '')
			{
				throw new UnexpectedValueException("Unexpected data received from Google: `{$data->body}`.");
			}

			return true;
		}
		else
		{
			return false;
		}
	}
public function clearCalendar($calendarID)
	{
		if ($this->isAuthenticated())
		{
			$data = $this->query('https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode($calendarID) . '/clear', null, null, 'post');

			if ($data->body != '')
			{
				throw new UnexpectedValueException("Unexpected data received from Google: `{$data->body}`.");
			}

			return true;
		}
		else
		{
			return false;
		}
	}
public function clearCalendar ( $ calendarID ) { if ( $ this -> isAuthenticated ( ) ) { $ data = $ this -> query ( 'https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode ( $ calendarID ) . '/clear' , null , null , 'post' ) ; if ( $ data -> body != '' ) { throw new UnexpectedValueException ( "Unexpected data received from Google: `{$data->body}`." ) ; } return true ; } else { return false ; } }
Method to clear a Google Calendar

@param   string  $calendarID  ID of calendar to clear

@return  boolean  Success or failure

@since   1.0
@throws  UnexpectedValueException
Method to clear a Google Calendar