---
sidebar_position: 6
---

import CodeEmbed from '@site/src/components/CodeEmbed';

# Delete Model

This API lets you create a delete a model from the Ollama server.

<CodeEmbed src="https://raw.githubusercontent.com/ollama4j/ollama4j-examples/refs/heads/main/src/main/java/io/github/ollama4j/examples/DeleteModel.java" />

Once deleted, you can verify it using [list models](./list-models) API.