Delete Unified Event
Delete an event by metaId for a user across all their calendars
Authorization
Authorization
RequiredBearer <token>The Recal API token
In: header
Path Parameters
userId
RequiredstringmetaId
RequiredstringQuery Parameters
timeZone
stringDefault:
"UTC"
provider
string | array<unknown>Response Body
TypeScript Definitions
Use the response body type in TypeScript.
response
RequiredstringTypeScript Definitions
Use the response body type in TypeScript.
response
Requiredstringcurl -X DELETE "https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google" \
-H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google", {
headers: {
"Authorization": "Bearer <token>"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.recal.dev/v1/users/string/calendar/events/meta/string?timeZone=UTC&provider=google"
response = requests.request("DELETE", url, headers = {
"Authorization": "Bearer <token>"
})
print(response.text)
Empty
"User has not the needed calendars connected"
"Organization not found"