---
title: "Delete a file"
method: DELETE
path: "/v2/files/{inodeId}"
tags: ["Files"]
---

# Delete a file

`DELETE /v2/files/{inodeId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/files/{inodeId}`
- Auth: HTTP bearer

Delete a folder or document, such as a workbook, data model, or report.

  ### Usage notes
  - Retrieve the **inodeId** by calling the [/v2/files](https://help.sigmacomputing.com/reference/list-files) endpoint and using the `id` included in the response.

## Path parameters

- `inodeId` string, required

## Response `200`

The response body.

- FilesDeleteResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
