[GH-ISSUE #430] How to clear history without deleting the model? #46709

Closed
opened 2026-04-27 23:36:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @TheGardenMan on GitHub (Aug 27, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/430

Originally created by @TheGardenMan on GitHub (Aug 27, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/430
GiteaMirror added the question label 2026-04-27 23:36:41 -05:00
Author
Owner

@ctsrc commented on GitHub (Aug 27, 2023):

There is a file named history in the ~/.ollama/ directory that contains all of the history of inputs.

If you truncate that file, history will be gone. (Assuming ollama is not storing it anywhere else in addition to there.)

For example, using the Terminal:

:> ~/.ollama/history

Try that.

<!-- gh-comment-id:1694671422 --> @ctsrc commented on GitHub (Aug 27, 2023): There is a file named `history` in the `~/.ollama/` directory that contains all of the history of inputs. If you truncate that file, history will be gone. (Assuming ollama is not storing it anywhere else in addition to there.) For example, using the Terminal: ```zsh :> ~/.ollama/history ``` Try that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46709