/
/Replicate HTTP API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 1h ago · Updated 10mo ago
  • getGet the authenticated account
  • getList collections of models
  • getGet a collection of models
  • getList deployments
  • postCreate a deployment
  • getGet a deployment
  • deleteDelete a deployment
  • patchUpdate a deployment
  • postCreate a prediction using a deployment
  • getList files
  • postCreate a file
  • getGet a file
  • deleteDelete a file
  • getDownload a file
  • getList available hardware for models
  • getList public models
  • postCreate a model
  • getGet a model
  • deleteDelete a model
  • patchUpdate metadata for a model
  • getList examples for a model
  • postCreate a prediction using an official model
  • getGet a model's README
  • getList model versions
  • getGet a model version
  • deleteDelete a model version
  • postCreate a training
  • getList predictions
  • postCreate a prediction
  • getGet a prediction
  • postCancel a prediction
  • getSearch models, collections, and docs (beta)
  • getList trainings
  • getGet a training
  • postCancel a training
  • getGet the signing secret for the default webhook

Delete a file

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

Example cURL request:

curl -X DELETE \
  -H "Authorization: Token $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/files/cneqzikepnug6xezperrr4z55o
delete/files/{file_id}

Path parameters

file_idstring required

The ID of the file to delete

Response

File has been deleted

Changes