---
title: "Deletes a log file record that never received its attachment. The import writes the record before the attachment is uploaded, so an upload that fails or is given up on would leave a record behind that every later import skips as already existing. Removing it here lets the next import add it properly."
method: DELETE
path: "/api/v{version}/log/file/{id}"
tags: ["Log"]
---

# Deletes a log file record that never received its attachment. The import writes the record before the attachment is uploaded, so an upload that fails or is given up on would leave a record behind that every later import skips as already existing. Removing it here lets the next import add it properly.

`DELETE /api/v{version}/log/file/{id}`

## Path parameters

- `id` integer, required
- `version` string, required

## Response `200`

OK

## Changes

- **2026-09-16** `f88f5acd2877` — 1 info
  - endpoint added
- **2026-09-16** `0042f3289415` — 1 breaking
  - api path removed without deprecation
- **2026-09-15** `a5e9724e27f9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/geoadmin/apis/boreholes-rest-api-v2/changes/api/v:version/log/file/:id/delete.md)

---

[API](https://skmtc.dev/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.dev/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/geoadmin/apis/boreholes-rest-api-v2/revisions/6c621d19f639?raw)
