---
title: "Delete Workspace File"
method: DELETE
path: "/v1/files/{file_path}"
tags: ["v1", "protected", "files"]
---

# Delete Workspace File

`DELETE /v1/files/{file_path}`

Archive a workspace file instead of destroying it.

The object moves under ``.trash/{timestamp}/`` and disappears from the
listing, so a mistaken delete is always recoverable through
:func:`restore_workspace_file`. Task-owned and staging paths are not
deletable here: they belong to a task's committed manifest, not to the
workspace library.

## Path parameters

- `file_path` string, required

## Response `200`

Successful Response

- ArchivedFileResponse
  - `archived_path` string, required
  - `path` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-03** `7a04ad6f3e0c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/files/:file_path/delete.md)

---

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