---
title: "Delete a container file"
method: DELETE
path: "/containers/{container_id}/files/{file_id}"
---

# Delete a container file

`DELETE /containers/{container_id}/files/{file_id}`

Delete Container File

## Path parameters

- `container_id` string, required
- `file_id` string, required

## Response `200`

OK

## Other responses

- `404` — The container was not found or has expired, or the file was not found in the container.
- `429` — The request was rejected because a rate limit was exceeded.

## Changes

- **2026-09-25** `d86203de41ae` — 1 info
  - added the non-success response with the status `404`
- **2026-09-03** `9430b00d75b4` — 1 info
  - added the optional property `error/misalignment` to the response with the `429` status
- **2026-08-14** `6ac2618eefd7` — 1 info
  - added the non-success response with the status `429`
- **2026-05-13** `74cbcf73838f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openai/apis/openapi/changes/containers/:container_id/files/:file_id/delete.md)

---

[API](https://skmtc.dev/openai/apis/openapi.md) · [All operations](https://skmtc.dev/openai/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/openai/apis/openapi/revisions/d86203de41ae?raw)
