---
title: "Delete a file"
method: DELETE
path: "/v1/files/{fileId}"
tags: ["files"]
---

# Delete a file

`DELETE /v1/files/{fileId}`

## Request

- Base URL: `https://api.olostep.com`
- URL: `https://api.olostep.com/v1/files/{fileId}`
- Auth: HTTP bearer

Permanently deletes a file and its stored contents.

## Path parameters

- `fileId` string, required

## Response `200`

Default Response

- object: File deletion confirmation.
  - `id` string, required
  - `object` string, required
  - `deleted` boolean, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `404`: Default Response
- `502`: Default Response

---

[API](https://skmtc.dev/olostep/apis/olostep-api.md) · [All operations](https://skmtc.dev/olostep/apis/olostep-api/llms.txt) · [OpenAPI document](https://skmtc.dev/olostep/apis/olostep-api/revisions/13c766ab100c?raw)
