Skip to content

Implement models.versions.delete endpoint #234

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

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Jan 27, 2024

In #173, @satellitebryn mentioned the 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.

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

Signed-off-by: Mattt Zmuda <mattt@replicate.com>
@mattt mattt mentioned this pull request Jan 27, 2024
@cryptexis
Copy link

@mattt hi, why no one is reviewing this ?

@mattt mattt merged commit 85d9b2a into main Feb 19, 2024
@mattt mattt deleted the mattt/models.versions.delete branch February 19, 2024 01:24
GothReigen pushed a commit that referenced this pull request 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 <mattt@replicate.com>
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

Successfully merging this pull request may close these issues.

2 participants