---
title: "Delete a file or directory"
method: DELETE
path: "/files/{fid}/{path}"
tags: ["Files Management"]
---

# Delete a file or directory

`DELETE /files/{fid}/{path}`

Delete a file or directory from the execution `in` or `out` directory.

## Path parameters

- `fid` string, required
- `path` string, required

## Response `204`

Request fulfilled, nothing follows

## Other responses

- `400` — Bad request syntax or unsupported method

## Changes

- **2025-08-08** `117c3013935d` — 1 info
  - api operation id `FilesFidPathDeleteFile` removed and replaced with `77_delete_file`
- **2025-08-06** `82f6f0eba091` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/masumi-network/apis/kodosumi-api/changes/files/:fid/:path/delete.md)

---

[API](https://skmtc.dev/masumi-network/apis/kodosumi-api.md) · [All operations](https://skmtc.dev/masumi-network/apis/kodosumi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/masumi-network/kodosumi-api/revisions/2092ce918678/schema)
