Permanently deletes a file from the OpenAI Files API. This action cannot be undone. Note that files associated with active batch jobs cannot be deleted until the job completes.
Arguments
- file_id
File identifier (starts with 'file-'), returned by
oai_batch_upload()oroai_file_list()- key_name
Name of the environment variable containing your API key
See also
oai_file_list() to find file IDs,
oai_file_content() to retrieve file contents before deletion