---
title: "Deletes a log file"
method: DELETE
path: "/api/logs/{file}"
tags: ["Logs"]
---

# Deletes a log file

`DELETE /api/logs/{file}`

## Response `204`

If the log file was successfully deleted.

## Other responses

- `400` — If the file name is invalid
- `404` — If the log file was not found.

## Changes

- **2025-03-06** `4dc3bf84edf7` — 2 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
- **2023-04-24** `98919748e600` — 1 info
  - endpoint added
- **2020-07-23** `42c41034504b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/logs/:file/delete.md)

---

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