---
title: "Remove one task file [write]"
method: DELETE
path: "/tasks/{id}/files/{path}"
tags: ["tasks"]
---

# Remove one task file \[write\]

`DELETE /tasks/{id}/files/{path}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/tasks/{id}/files/{path}`
- Auth: HTTP bearer

Removes the path from the current files. Its history stays readable with `versions=true`.

## Path parameters

- `id` string, required
- `path` string, required

## Response `200`

OK

- object
  - `ok` boolean, required

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/tasks/:id/files/:path/delete.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
