Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Delete a fine-tuned model

models.delete(strmodel) -> ModelDeleted
DELETE/models/{model}

Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.

ParametersExpand Collapse
model: str
ReturnsExpand Collapse
class ModelDeleted:
id: str
deleted: bool
object: str

Delete a fine-tuned model

from openai import OpenAI
client = OpenAI()

client.models.delete("ft:gpt-4o-mini:acemeco:suffix:abc123")
{
  "id": "ft:gpt-4o-mini:acemeco:suffix:abc123",
  "object": "model",
  "deleted": true
}
Returns Examples
{
  "id": "ft:gpt-4o-mini:acemeco:suffix:abc123",
  "object": "model",
  "deleted": true
}