Delete a response
Call Create response first, then replace resp_123 with the returned ID.
DELETE
/model/v1/responses/{response_id}● SupportedRequest parameters
response_idstringrequiredpath: Id of the stored response, the
idreturned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.
Returns
200 response
Deletes a stored response by ID immediately. If it was created with store set to false we did not store it, and the delete returns 404 response_not_found.
Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — see error codes
Request
curl
# Call Create response first, then replace resp_123 with the returned ID.
curl -X DELETE https://api.deepraxis.com/model/v1/responses/resp_123 \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create response first, then replace resp_123 with the returned ID.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepraxis.com/model/v1",
api_key="$PRAXIS_API_KEY",
)
client.responses.delete("resp_123")TypeScript
// Call Create response first, then replace resp_123 with the returned ID.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepraxis.com/model/v1",
apiKey: "$PRAXIS_API_KEY",
});
await client.responses.delete("resp_123");Response 200
{
"id": "2923c78c-1c5a-4828-a44b-c3a37ce3531d",
"object": "response",
"deleted": true
}Response
HTTP 200
Native Responses API delete response
application/json
| Name | Type | Description |
|---|---|---|
| $ | object |