DELETE/chat/completions/{completion_id}

Delete chat completion

Delete a stored chat completion. Only Chat Completions that have been created with the store parameter set to true can be deleted.

1 parameter
completion_idstringrequired
The ID of the chat completion to delete.

4 status codes
200The chat completion was deleted successfully.
objectstringrequired
The type of object being deleted.
Allowed:chat.completion.deleted
idstringrequired
The ID of the chat completion that was deleted.
deletedbooleanrequired
Whether the chat completion was deleted.
404No stored chat completion was found with the specified ID.
errorobjectrequired
429The request was rejected because a rate limit was exceeded.
errorobjectrequired
500An internal error prevented the request from being completed.
errorobjectrequired

Error handling

A 404 is returned: No stored chat completion was found with the specified ID. A 429 is returned: The request was rejected because a rate limit was exceeded. A 500 is returned: An internal error prevented the request from being completed.