---
title: "Delete a file"
method: DELETE
path: "/matters/{matterId}/documents/files/{fileId}"
tags: ["Files"]
---

# Delete a file

`DELETE /matters/{matterId}/documents/files/{fileId}`

Deletes a specified matter file.

## Path parameters

- `matterId` string, uuid, required
- `fileId` string, uuid, required

## Response `202`

When request is accepted. Returns a 'Link' object.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400` — When an unsupported request is made.
- `403` — When the requested file does not belong to the account making the request.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/197984da9b42/schema)
