The API end point for deleting a fine tuned model is:
DELETE
https://api.openai.com/v1/models/{model}
Issue
This means you can only delete fine-tuned models which have been assigned model names.
However, when a fine-tuning is cancelled, there is no model name assigned, so you cannot delete it.
Example: Cancelled FTMs do not have model names so they cannot be deleted with the current API:
Potential Solution
Permit API users to delete FTMs using the fine-tuned ID.
Thanks
Discussion
Normally, we would delete by id, not name, so there must be a reason OpenAI devs choose to restrict model deletions to the model name, so if OpenAI devs want to go this route with the name only, then a name should be assigned to a cancelled model, like:
davinci:ft-personal-cancelled-2023-01-18-10-18-00
But it seems that permitting API users to delete by using the fine-tuned model ID is a cleaner way to go.
Either way, please fix this so we API users can delete cancelled fine-tunings
Thanks!