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.
请求参数
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
Deletion request has been accepted. It might take a few minutes to be processed.(202)
Deletion request has been accepted. It might take a few minutes to be processed.
HTTP 状态码: 202
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 1 年前