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

# Delete a file

`DELETE /files/{file_id}`

Delete a file. Once a file has been deleted, subsequent requests to the file resource return 404 Not found.

Example cURL request:

```console
curl -X DELETE \
  -H "Authorization: Token $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/files/cneqzikepnug6xezperrr4z55o
```

## Path parameters

- `file_id` string, required

## Response `204`

File has been deleted

## Other responses

- `404` — File not found

## Changes

- **2025-05-07** `efbc8cc2d746` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/replicate/apis/replicate-http-api/changes/files/:file_id/delete.md)

---

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