---
title: "Archive a Custom Event"
method: DELETE
path: "/projects/{project_id}/custom_events/{event_id}"
tags: ["Events"]
---

# Archive a Custom Event

`DELETE /projects/{project_id}/custom_events/{event_id}`

Archive a Custom Event

## Path parameters

- `project_id` integer, required
- `event_id` integer, required

## Response `204`

Successfully archived Custom Event

## Other responses

- `401` — Invalid credentials
- `403` — You do not have permission to archive this Custom Event
- `404` — Invalid Project ID or Event ID supplied
- `default` — Unexpected error

---

[API](https://skmtc.dev/optimizely/apis/optimizely-api.md) · [All operations](https://skmtc.dev/optimizely/apis/optimizely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimizely/optimizely-api/revisions/5151fe6a2297/schema)
