Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Conversation

@glours
Copy link
Contributor

@glours glours commented Apr 7, 2025

Allow to remove multiple model from the same command call
Could be useful to have the same capabilities as the main docker cli in the future
for example Docker CLI permits docker rm $(docker ps --filter status=exited -q) we could have the same -q attribut to docker model list and do docker model rm $(docker model list -q) to remove all the model at once

@glours glours force-pushed the rm-multiple-models branch from 34f1638 to eb08c54 Compare April 8, 2025 13:46
Copy link
Contributor

@ilopezluna ilopezluna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @glours for helping here 🙏
I've tried the PR and everything works great, just added a suggestion to use ggcr because IMHO its going to make this and future changes more easy/readable. Let me know what you think!

return "", fmt.Errorf("failed to unmarshal response body: %w", err)
}

for _, m := range modelsJson {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@doringeman doringeman merged commit aef3eaa into docker:main Apr 9, 2025
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants