[PR #151] [MERGED] add rm command for models #10015

Closed
opened 2026-04-12 22:49:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/151
Author: @pdevine
Created: 7/20/2023
Status: Merged
Merged: 7/20/2023
Merged by: @pdevine

Base: mainHead: deletemodels


📝 Commits (1)

  • 4f473a4 add rm command for models

📊 Changes

5 files changed (+166 additions, -25 deletions)

View changed files

📝 api/client.go (+13 -0)
📝 api/types.go (+8 -4)
📝 cmd/cmd.go (+34 -11)
📝 server/images.go (+77 -0)
📝 server/routes.go (+34 -10)

📄 Description

This change adds an "rm" command so that you can remove models that you don't want anymore. The handler determines if other manifests require a given layer and will save anything still required.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/151 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 7/20/2023 **Status:** ✅ Merged **Merged:** 7/20/2023 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `deletemodels` --- ### 📝 Commits (1) - [`4f473a4`](https://github.com/ollama/ollama/commit/4f473a40a6e53405eeefeef2dafac7eb2c87fb65) add rm command for models ### 📊 Changes **5 files changed** (+166 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+13 -0) 📝 `api/types.go` (+8 -4) 📝 `cmd/cmd.go` (+34 -11) 📝 `server/images.go` (+77 -0) 📝 `server/routes.go` (+34 -10) </details> ### 📄 Description This change adds an "rm" command so that you can remove models that you don't want anymore. The handler determines if other manifests require a given layer and will save anything still required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 22:49:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10015