No mechanism exists to delete batches (important privacy mistake)

This page:-

https://platform.openai.com/docs/models/tts#default-usage-policies-by-endpoint

says, in regards to data retention on /v1/batches:

“Until deleted by customer”

However, none of the standard “delete” operations are functional (all return errors), and the API guide for batches https://platform.openai.com/docs/guides/batch does not reveal any options to delete.

My list of completed batches is growing out-of-control now, and I’m eager to remove them…

2 Likes

Take these:

  "output_file_id": {file_id},
  "error_file_id": {file_id2},
  "input_file_id": {file_id3},

Using an organization owner account’s “user” API key:

DELETE https://api.openai.com/v1/files/{file_id}

or

from openai import OpenAI; client = OpenAI()
client.files.delete(file_id)

Not gone?