---
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.

---

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