ExOpenAI.Files.delete_file
You're seeing just the function
delete_file
, go back to ExOpenAI.Files module for more information.
Specs
delete_file(String.t(), openai_organization_key: String.t(), openai_api_key: String.t() ) :: {:ok, ExOpenAI.Components.DeleteFileResponse.t()} | {:error, any()}
Delete a file.
Endpoint: https://api.openai.com/v1/files/{file_id}
Method: DELETE
Docs: https://platform.openai.com/docs/api-reference/files
Required Arguments:
file_id
Optional Arguments:
openai_api_key
: OpenAI API key to pass directly. If this is specified, it will override theapi_key
config value.openai_organization_key
: OpenAI API key to pass directly. If this is specified, it will override theorganization_key
config value.