---
title: "Delete a file or a directory in the filesystem"
method: DELETE
path: "/fs/"
---

# Delete a file or a directory in the filesystem

`DELETE /fs/`

This endpoint can be dangerous, use it with extreme caution

## Query parameters

- `path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-26** `9d9fed6b4dc7` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/jolibrain/apis/joligen-server/changes/fs/delete.md)

---

[API](https://skmtc.dev/jolibrain/apis/joligen-server.md) · [All operations](https://skmtc.dev/jolibrain/apis/joligen-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jolibrain/joligen-server/revisions/9d9fed6b4dc7/schema)
