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

# Delete a file.

`DELETE /openai/v1/files/{file_id}`

## Path parameters

- `file_id` string, required

## Response `200`

OK

- DeleteFileResponse
  - `id` string, required
  - `object` 'file', required
  - `deleted` boolean, required

## Changes

- **2025-01-29** `c5b2589925cd` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/groq/apis/groqcloud-api/changes/openai/v1/files/:file_id/delete.md)

---

[API](https://skmtc.dev/groq/apis/groqcloud-api.md) · [All operations](https://skmtc.dev/groq/apis/groqcloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/groq/groqcloud-api/revisions/ea91f46f212a/schema)
