Sample - OpenAI API
DELETE/responses/{response_id}

Delete a model response

Deletes a model response by its identifier. Use this operation when you no longer need to retain the specified response. The operation returns a confirmation of the deletion.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
response_idstringrequired
The identifier of the model response to delete.

3 status codes
200Returns confirmation that the specified model response was deleted.
404Returned when no model response exists with the given `response_id`.
codestringrequired
messagestringrequired
paramstringrequired
typestringrequired
misalignmentobjectoptional
429Returned when the request exceeds the rate limit.
errorobjectrequired

Error handling

A 404 is returned when response_id does not identify an existing response. A 429 is returned when the request exceeds the rate limit. Supply the exact response identifier and retry later if rate limiting occurs.