Replicate API
    Replicate API
    • List collections of models
      GET
    • Get a collection of models
      GET
    • List available hardware for models
      GET
    • List public models
      GET
    • Create a model
      POST
    • Get a model
      GET
    • List model versions
      GET
    • Delete a model version
      DELETE
    • Get a model version
      GET
    • Create a training
      POST
    • List predictions
      GET
    • Create a prediction
      POST
    • Get a prediction
      GET
    • Cancel a prediction
      POST
    • List trainings
      GET
    • Get a training
      GET
    • Cancel a training
      POST

      Delete a model version

      DELETE
      /v1/models/{model_owner}/{model_name}/versions/{version_id}
      Delete a model version and all associated predictions, including all output files.
      Model version deletion has some restrictions:
      You can only delete versions from models you own.
      You can only delete versions from private models.
      You cannot delete a version if someone other than you has run predictions with it.
      Example cURL request:
      curl -s -X DELETE \
        -H "Authorization: Token <paste-your-token-here>" \
        https://api.replicate.com/v1/models/replicate/hello-world/versions/5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa
      The response will be an empty 202, indicating the deletion request has been accepted. It might take a few minutes to be processed.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request DELETE 'https://api.replicate.com/v1/models///versions/'
      Response Response Example
      {}

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Path Params
      model_owner
      string 
      required
      The name of the user or organization that owns the model.
      model_name
      string 
      required
      The name of the model.
      version_id
      string 
      required
      The ID of the version.

      Responses

      🟢202Deletion request has been accepted. It might take a few minutes to be processed.
      application/json
      Body
      object {0}
      Modified at 2023-12-22 03:33:22
      Previous
      List model versions
      Next
      Get a model version
      Built with