Tech Junction Answered question 12 hours ago
This procedure outlines the steps to remove AI models from Ollama, both via the command line and the Open WebUI. This is useful for managing your system’s resources and ensuring that only the necessary models are installed. Steps to Remove AI Models from Ollama Command Line Interface (CLI)
- List the models currently installed on your system:
# ollama list
- Delete the unwanted model. For example, to remove a model named “deepseek-r1:32b”, you would type:
# ollama rm deepseek-r1:32b
You should see a confirmation message like:
deleted 'deepseek-r1:32b'
- Verify the deletion by listing the models again:
# ollama list
- Access the Open WebUI in your browser.
- Navigate to the Models section to see the list of installed models.
- Select the model you want to remove.
- Use the backend Ollama API service to delete the model. This can be done by sending a DELETE request to the API endpoint. For example:
DELETE http://localhost:8000/api/models/deepseek-r1:32b
You should receive a confirmation response indicating the model has been deleted.
- Refresh the Models section in the WebUI to verify that the model has been removed.
By following these steps, you can efficiently manage and remove AI models from Ollama, whether you’re using the command line or the Open WebUI.
If you have any further questions or need additional assistance, feel free to ask!
Tech Junction Edited answer 12 hours ago