replicate/replicate-python

Delete a model

ThatOneCoder20 opened this issue · 10 comments

Hi, I recently just started using Replicate and I'm working on fine-tuning models. However, does anyone know how to delete a model on the platform?

+1 for this.

Nevermind, I just found out what +1 meant.

I also want to know it. I saw the API docs of replicate and found a method to delete a model version. But there is no API to delete full model. How can I delete replicate model that created by API permanently?

Did anyone find a way? Because I am seeing an unbilled charges piling up even though I don't have active deployments

I am facing the same issue. Has anyone found any solution to this?

I am facing the same issue. Has anyone found any solution to this?

Thanks to @satellitebryn you can delete a model using this code written in CURL:

curl -s -X DELETE \ -H "Authorization: Token XXX" \ https://api.replicate.com/v1/models/replicate/hello-world/versions/5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa

Hey everyone. Sorry for not responding to this sooner. Replicate's API doesn't currently have an endpoint for deleting models. But as @satellitebryn correctly pointed out, it does have an endpoint for deleting model versions.

The Python client doesn't have a corresponding method for that API, and that was an oversight. I just opened #234, which resolves that.

Got it, thanks 🙏