Swagger Petstore - OpenAPI 3.0
DELETE/chat/completions/{completion_id}

Delete a stored chat completion

Deletes a stored chat completion permanently. Only chat completions created with the store parameter set to true can be deleted. This action is irreversible.

1 parameter
completion_idstringrequired
The unique identifier of the chat completion to delete.

1 status code
200Returns a deletion confirmation object with the deleted completion's identifier and a boolean flag confirming successful deletion.
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.

Error handling

completion_id must identify an existing chat completion that was created with store set to true.