---
title: "Delete calendar event by ID (Admin)"
description: "Delete an existing calendar event by its ID. Requires admin authentication."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Calendar

`DELETE /api/calendar/events/{id}`

Delete an existing calendar event by its ID. Requires admin authentication.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `id` (`delete/api/calendar/events/id.path.id`; string, required) — Calendar event ID
  - example `"1dfc54fd-cbc3-4483-858f-c0fb76f89328"`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url https://api.channelautomation.com/api/calendar/events/1dfc54fd-cbc3-4483-858f-c0fb76f89328 \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/calendar/events/1dfc54fd-cbc3-4483-858f-c0fb76f89328';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/calendar/events/1dfc54fd-cbc3-4483-858f-c0fb76f89328"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

Event deleted successfully

#### Example

```json
{
  "success": true,
  "message": "Calendar event deleted"
}
```

- `success` (`delete/api/calendar/events/id.response.200.success`; boolean, optional)
  - example `true`
- `message` (`delete/api/calendar/events/id.response.200.message`; string, optional)
  - example `"Calendar event deleted"`

### 401

Authentication required

#### Example

```json
{
  "error": "Authentication required",
  "success": false
}
```

- `error` (`delete/api/calendar/events/id.response.401.error`; string, optional)
  - example `"Authentication required"`
- `success` (`delete/api/calendar/events/id.response.401.success`; boolean, optional)
  - example `false`

### 403

Admin privileges required

#### Example

```json
{
  "error": "Admin privileges required",
  "success": false
}
```

- `error` (`delete/api/calendar/events/id.response.403.error`; string, optional)
  - example `"Admin privileges required"`
- `success` (`delete/api/calendar/events/id.response.403.success`; boolean, optional)
  - example `false`

### 404

Event not found

#### Example

```json
{
  "success": false,
  "error": "Event not found"
}
```

- `success` (`delete/api/calendar/events/id.response.404.success`; boolean, optional)
  - example `false`
- `error` (`delete/api/calendar/events/id.response.404.error`; string, optional)
  - example `"Event not found"`

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`delete/api/calendar/events/id.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`delete/api/calendar/events/id.response.500.details`; string, optional)
- `success` (`delete/api/calendar/events/id.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/delete-api-calendar-events-id/index.md
