---
title: "Delete file"
method: DELETE
path: "/files"
tags: ["files"]
---

# Delete file

`DELETE /files`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/files`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Remove a workspace file or directory.

## Request body

- object
  - `path` string, required

## Response `200`

Successful response

- object, nullable: Deleted path, or null when nothing existed at the path.
  - `path` string, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
