Delete a response
Call Create response first, then replace resp_123 with the returned ID.
DELETE
/openai/v1/responses/{response_id}● SupportedRequest parameters
response_idstringrequiredpath:
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.
Errors follow the OpenAI format — see error codes
Request
curl
# Call Create response first, then replace resp_123 with the returned ID.
curl -X DELETE https://api.deepraxis.com/openai/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/openai/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/openai/v1",
apiKey: "$PRAXIS_API_KEY",
});
await client.responses.delete("resp_123");Response 200
{
"id": "4d800a0d-a91a-4ba8-ac50-7a599f246c7a",
"object": "response",
"deleted": true
}Response
HTTP 200
Native Responses API delete response
application/json
| Name | Type | Description |
|---|---|---|
| $ | object |