[GH-ISSUE #3728] ollama prune #79972

Closed
opened 2026-05-09 07:29:36 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Tobiadefami on GitHub (Apr 18, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3728

I think ollama needs a prune command, something similar to docker system prune. Just to keep the environment tidy

Originally created by @Tobiadefami on GitHub (Apr 18, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3728 I think ollama needs a prune command, something similar to `docker system prune`. Just to keep the environment tidy
GiteaMirror added the feature request label 2026-05-09 07:29:36 -05:00
Author
Owner
<!-- gh-comment-id:2063188085 --> @ghost commented on GitHub (Apr 18, 2024): I think that this functionality is already enabled by default. To disable you can set `OLLAMA_NOPRUNE`. See: https://github.com/ollama/ollama/blob/8645076a71941d78a996e52cff65c794df6cdbcb/server/images.go#L626-L630 https://github.com/ollama/ollama/blob/8645076a71941d78a996e52cff65c794df6cdbcb/server/images.go#L736-L860 https://github.com/ollama/ollama/blob/8645076a71941d78a996e52cff65c794df6cdbcb/server/routes.go#L1124-L1138
Author
Owner

@Tobiadefami commented on GitHub (Apr 18, 2024):

Oh great! thanks for the shout

<!-- gh-comment-id:2063300464 --> @Tobiadefami commented on GitHub (Apr 18, 2024): Oh great! thanks for the shout
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#79972