OpenAI API DocsCommunity translation · Official structure

Resources

Models — Delete

OpenAI API endpoint method reference.

English source
This English page is rendered from the official Markdown mirror in this repository.View on OpenAI ↗

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

Delete a fine-tuned model

delete /models/{model}

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

Path Parameters

  • model: string

Returns

  • ModelDeleted object { id, deleted, object }

    • id: string

    • deleted: boolean

    • object: string

Example

curl https://api.openai.com/v1/models/$MODEL \
    -X DELETE \
    -H "Authorization: Bearer $OPENAI_API_KEY"

Response

{
  "id": "id",
  "deleted": true,
  "object": "object"
}

Example

curl https://api.openai.com/v1/models/ft:gpt-4o-mini:acemeco:suffix:abc123 \
  -X DELETE \
  -H "Authorization: Bearer $OPENAI_API_KEY"

Response

{
  "id": "ft:gpt-4o-mini:acemeco:suffix:abc123",
  "object": "model",
  "deleted": true
}