Skip to content

Delete a model #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jaquavious-Finkleton opened this issue Oct 20, 2023 · 10 comments
Closed

Delete a model #173

Jaquavious-Finkleton opened this issue Oct 20, 2023 · 10 comments

Comments

@Jaquavious-Finkleton
Copy link

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?

@donprasetiyo
Copy link

+1 for this.

@Jaquavious-Finkleton
Copy link
Author

Jaquavious-Finkleton commented Oct 30, 2023

Nevermind, I just found out what +1 meant.

@YouthDream0925
Copy link

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?

@vpgits
Copy link

vpgits commented Dec 16, 2023

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

@chichoss
Copy link

+1

@satellitebryn
Copy link

@sarfarazh
Copy link

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

@Jaquavious-Finkleton
Copy link
Author

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

@mattt
Copy link
Contributor

mattt commented Jan 27, 2024

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.

@Jaquavious-Finkleton
Copy link
Author

Got it, thanks 🙏

mattt added a commit that referenced this issue Feb 19, 2024
In #173,
@satellitebryn mentioned the
[`models.versions.delete`](https://replicate.com/docs/reference/http#models.versions.delete)
endpoint, which currently doesn't have a corresponding method in the
Python client.

This PR adds a `delete` and `async_delete` method to the `versions`
namespace.

```python
model = client.models.get("your-username/model-name")
model.versions.delete(model.latest_version.id)
```

Signed-off-by: Mattt Zmuda <[email protected]>
GothReigen pushed a commit that referenced this issue Mar 11, 2024
In #173,
@satellitebryn mentioned the
[`models.versions.delete`](https://replicate.com/docs/reference/http#models.versions.delete)
endpoint, which currently doesn't have a corresponding method in the
Python client.

This PR adds a `delete` and `async_delete` method to the `versions`
namespace.

```python
model = client.models.get("your-username/model-name")
model.versions.delete(model.latest_version.id)
```

Signed-off-by: Mattt Zmuda <[email protected]>
Chris000102 added a commit to Chris000102/replicate-python that referenced this issue May 3, 2024
In replicate/replicate-python#173,
@satellitebryn mentioned the
[`models.versions.delete`](https://replicate.com/docs/reference/http#models.versions.delete)
endpoint, which currently doesn't have a corresponding method in the
Python client.

This PR adds a `delete` and `async_delete` method to the `versions`
namespace.

```python
model = client.models.get("your-username/model-name")
model.versions.delete(model.latest_version.id)
```

Signed-off-by: Mattt Zmuda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants