---
title: "Delete a file"
method: DELETE
path: "/v1/sessions/{sessionId}/files/{path}"
tags: ["Files"]
---

# Delete a file

`DELETE /v1/sessions/{sessionId}/files/{path}`

Delete a file from a session

## Path parameters

- `sessionId` string, required
- `path` string, required

## Response `204`

File successfully deleted

## Other responses

- `401` — An error response from the API
- `404` — An error response from the API
- `409` — An error response from the API
- `500` — An error response from the API

## Changes

- **2026-06-07** `4985d7bcd32f` — 4 info
  - added the non-success response with the status `401`
  - added the optional property `linkToDocs` to the response with the `404` status
  - added the optional property `linkToDocs` to the response with the `409` status
  - added the optional property `linkToDocs` to the response with the `500` status
- **2026-01-08** `97dcad9b050e` — 3 info
  - the response property `context/items/params` became required for the status `404`
  - the response property `context/items/params` became required for the status `409`
  - the response property `context/items/params` became required for the status `500`
- **2025-08-11** `15ffd3fc04f3` — 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the non-success response with the status `500`

[Change history](https://skmtc.dev/steel-dev/apis/steel-api/changes/v1/sessions/:sessionId/files/:path/delete.md)

---

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