How to delete a fine-tune model (via api)?

I’m building a small tool to help me manage files and fine-tunes. I just noticed there doesn’t seem to be an API endpoint to delete fine-tune models.
Am I missing something? The command line openai tool seems to be able to do it

Hi! An API for model deletion exists (you’re right, it’s what the CLI calls), but we haven’t added documentation to the site yet – sorry, coming soon!

The API is:


or in python:


thanks Rachel, I see that the “models” endpoint is missing from the docs. I added that and now it’s working fine :slight_smile:

Delete endpoint is working fine but engines are still appearing on GET /v1/fine-tunes endpoint with status succeeded. At this point, it is impossible to understand which engines are available.

If you call delete endpoint again you will get a 404. I think delete endpoint is working but there is a bug at fine-tunes endpoint or I am missing something.

I had the same question but no, its ok like it is. Fine tunes is different from engines. Think like this: a fine-tune is a process that runs and finishes, producing a new engine as a result. Even if you delete the engine, the fine-tune record will remain, which it should. To know which engines are available you should use the engines end-point, not the fine-tunes endpoint.