---
title: "Delete an event schema"
method: DELETE
path: "/event_schema/{event_schema_name}"
tags: ["Event Schemas"]
---

# Delete an event schema

`DELETE /event_schema/{event_schema_name}`

## Request

- Base URL: `https://api.togai.com`
- URL: `https://api.togai.com/event_schema/{event_schema_name}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/togaihq/apis/togai-apis/docs/event_schema/:event_schema_name/delete.ts> (a function with typed inputs; its response is checked against the schema)

To delete(archive) an event schema, you’re required to archive associated active usage meters if any.

## Path parameters

- `event_schema_name` string, required

## Response `200`

OK

- BaseSuccessResponse
  - `success` boolean, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response
- `429`: Error response
- `default`: Error response

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/togaihq/apis/togai-apis/revisions/442f5d8f4aa0?raw)
