For AI agents: markdown of this page — /docs-content-en/entities/calendar-events/delete.md documentation index — /llms.txt
Delete event
DELETE /v1/calendar-events/:id
Deletes a calendar event by identifier. A deleted event cannot be restored via the API — create a new one if needed.
Parameters
| Parameter | Type | Req. | Description |
|---|---|---|---|
id (path) |
number | yes | Event ID |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/calendar-events/7773" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/calendar-events/7773" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/calendar-events/7773', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
if (res.status === 204) {
console.log('Event deleted')
}
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/calendar-events/7773', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
if (res.status === 204) {
console.log('Deleted')
}
Response
On successful deletion, an HTTP status 204 No Content is returned with an empty body. The success indicator is the response code, not the content.
Response example
HTTP/1.1 204 No Content
Error response example
422 — the event was already deleted or never existed:
{
"success": false,
"error": {
"code": "BITRIX_ERROR",
"message": "An error occurred while deleting the event"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 422 | BITRIX_ERROR |
The event with the specified id does not exist or is already deleted |
| 403 | SCOPE_DENIED |
The API key does not have the calendar scope |
| 401 | TOKEN_MISSING |
The API key has no configured tokens |
Full list of common API errors — Errors.
Known specifics
Recurring events. Deleting an event with a recurrence rule (rrule) removes the entire series — all occurrences with the same parentId. A single occurrence cannot be removed from a series via the API.
See also
- List events
- Batch — bulk deletion