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

# Delete a file

`DELETE /files/{file_id}`

## Request

- Base URL: `https://api.cloudglue.dev/v1`
- URL: `https://api.cloudglue.dev/v1/files/{file_id}`
- Auth: HTTP bearer

Delete a file

## Path parameters

- `file_id` string, required

## Response `200`

Successful deletion

- FileDelete
  - `id` string, required: ID of the deleted file
  - `object` 'file', required: Object type, always 'file'

## Other responses

- `404`: File not found
- `500`: An unexpected error occurred on the server

## Changes

- **2026-10-30** `23d3f240819f`: 2 info
  - added the optional property `code` to the response with the `404` status
  - added the optional property `code` to the response with the `500` status

[Operation history](https://skmtc.dev/cloudglue/apis/cloudglue-api/changes/files/:file_id/delete.md)

---

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