---
title: "Delete a log by its ID."
method: DELETE
path: "/v3/logs/{id}"
tags: ["Logs"]
---

# Delete a log by its ID.

`DELETE /v3/logs/{id}`

Only empty logs can be deleted. Make sure to delete all messages (including hidden messages) before calling this endpoint.<br/><br/>Required permission: `logs_delete`

## Path parameters

- `id` string, required

## Response `204`

Log was deleted.

## Other responses

- `400` — Id not specified.
- `401` — API key not valid or no access to resource.
- `402` — Tried to call the logs API but the trial expired.
- `404` — Log not found.
- `409` — Log contains data and cannot be deleted.
- `429` — A maximum of 500 requests per minute and 3600 requests per hour are permitted

---

[API](https://skmtc.net/elmah/apis/elmah-io-api.md) · [All operations](https://skmtc.net/elmah/apis/elmah-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elmah/elmah-io-api/versions/8e9c6e56e4fa/schema)
