# Delete event

`DELETE /v1/events/{id}`

Forgets an event and its types. Automations that listen for its name keep listening, what was received stays listed for ninety days, and sending it again defines it again.

Needs the scope: `events:write`

## Path parameters

- `id` (string, required): The id or the name of the event. Up to 120 characters.

## Returns

- `object` (string): What kind of thing was removed. One of: `list`, `email`, `broadcast`, `audience`, `template`, `template_version`, `template_starter`, `automation`, `metrics`, `domain`, `api_key`, `webhook`, `log`, `workspace`, `member`, `method`, `account`, `inbound_email`, `webhook_delivery`, `contact`, `plan`, `checkout`, `invoice`, `ask_answer`, `suppression`, `chat`, `automation_run`, `event`, `event_receipt`, `import`, `import_inventory`, `topic`, `contact_property`, `image`, `server`.
- `id` (string): The id of what was removed.
- `deleted` (true): Always `true`: it is gone for good.

## Example

cURL:

```bash
curl -X DELETE "$OPENSEND_API_URL/v1/events/cart.abandoned" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.events.remove('cart.abandoned')
```

CLI:

```bash
opensend events remove cart.abandoned
```

MCP:

```json
{
  "name": "events_remove",
  "arguments": {
    "id": "cart.abandoned"
  }
}
```

Answer:

```json
{
  "object": "event",
  "id": "evt_cart.abandoned",
  "deleted": true
}
```
