---
title: "Delete calendar event (Admin)"
description: "Delete an existing calendar event. 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`

Delete an existing calendar event. 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`

## Request body

_Required._

- `id` (`delete/api/calendar/events.id`; string, required) — Appointment ID to delete
  - example `"appointment-uuid"`

## Example request

```json
{
  "id": "appointment-uuid"
}
```

## Code samples

### cURL

```bash
curl --request DELETE \
  --url https://api.channelautomation.com/api/calendar/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "appointment-uuid"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/calendar/events';
const options = {
  method: 'DELETE',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({id: 'appointment-uuid'})
};

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"

payload = { "id": "appointment-uuid" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Event deleted successfully

#### Example

```json
{
  "success": true,
  "message": "Appointment deleted"
}
```

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

### 400

Missing appointment ID

#### Example

```json
{
  "success": false,
  "error": "Missing required field: id"
}
```

- `success` (`delete/api/calendar/events.response.400.success`; boolean, optional)
  - example `false`
- `error` (`delete/api/calendar/events.response.400.error`; string, optional)
  - example `"Missing required field: id"`

### 401

Authentication required

#### Example

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

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

### 403

Admin privileges required

#### Example

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

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

### 500

Internal server error

#### Example

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

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


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