outlook_ calendar. delete_ event
Delete an Outlook Calendar event.
5 credits. Per event deleted. 0 when cancelled.
Example prompt
Send this to your AI app when Heelo is connected:
Cancel my 3pm meeting tomorrow
Input fields
| Field | Type | Description |
|---|---|---|
query | string | Natural-language cancel/delete request. |
event_id | string | Target event id (skips lookup). |
send_cancellation | boolean | If you organize the event, notify attendees on cancel. |
timezone | string | IANA timezone override. |
session_id | string | Multi-turn session id. |
message | string | Follow-up answer (selection / confirmation). |
Output fields
The fields in data when status is success.
| Field | Type |
|---|---|
deleted | boolean |
cancelled | boolean |
event | object |
Code
The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.
import os
import requests
response = requests.post(
"https://toolsprimitives.uk/v1/tools/outlook_calendar.delete_event/invoke",
headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
json={"input": {
"query": "Cancel my 3pm meeting tomorrow",
}},
timeout=120,
)
response.raise_for_status()
print(response.json())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/outlook_calendar.delete_event/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"query": "Cancel my 3pm meeting tomorrow"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());