powered by
Shortcut that creates an OpenAI client from the OPENAI_API_KEY environment variable and deletes a stored response.
OPENAI_API_KEY
delete_response(response_id)
A list with $deleted (TRUE if successful).
$deleted
TRUE
Character. Required. The response ID to delete.
if (FALSE) { Sys.setenv(OPENAI_API_KEY = "sk-xxxxxx") result <- delete_response("resp_abc123") if (result$deleted) cat("Response deleted.") }
Run the code above in your browser using DataLab